more sanity checks

This commit is contained in:
Shish 2010-02-01 23:30:07 +00:00
parent acadaa29ec
commit 4df08e9477
2 changed files with 4 additions and 2 deletions

View file

@ -16,7 +16,9 @@
class DataUploadEvent extends Event { class DataUploadEvent extends Event {
var $user, $tmpname, $metadata, $hash, $type, $image_id = -1; var $user, $tmpname, $metadata, $hash, $type, $image_id = -1;
public function DataUploadEvent($user, $tmpname, $metadata) { public function DataUploadEvent(User $user, $tmpname, $metadata) {
assert(file_exists($tmpname));
$this->user = $user; $this->user = $user;
$this->tmpname = $tmpname; $this->tmpname = $tmpname;

View file

@ -45,7 +45,7 @@ class ImageInfoBoxBuildingEvent extends Event {
class ImageInfoSetEvent extends Event { class ImageInfoSetEvent extends Event {
var $image; var $image;
public function ImageInfoSetEvent($image) { public function ImageInfoSetEvent(Image $image) {
$this->image = $image; $this->image = $image;
} }
} }