}
}
+ 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());
-
- if(method_exists($this, 'addExtraLog')){
- $this->addExtraLog($ar, $roo);
- }
+ $this->addEvent($ar, $roo);
$r = DB_DataObject::factory($this->tableName());
$r->id = $this->id;
}
- function addEvent()
+ function addEvent($ar, $roo)
{
$roo->addEvent("ADD", $this, $this->toEventString());
}