}
}
+ if($this->mimetype == 'application/pdf'){
+ $this->no_of_pages = $this->getNumberOfPage($file);
+ }
+
$this->filesize = filesize($file);
$this->created = date('Y-m-d H:i:s');
$roo->jerr("File upload failed : error = ". (!empty($this->err) ? $this->err : ''));
}
- $roo->addEvent("ADD", $this, $this->toEventString());
+ $this->addEvent($ar, $roo);
$r = DB_DataObject::factory($this->tableName());
$r->id = $this->id;
}
+ function addEvent($ar, $roo)
+ {
+ $roo->addEvent("ADD", $this, $this->toEventString());
+ }
+
function toEventString()
{