more sanity checks
This commit is contained in:
parent
acadaa29ec
commit
4df08e9477
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue