Ejemplo n.º 1
0
 /**
  * delete a file info4
  *
  * @param Tracker_FileInfo $file_info
  *
  * @return boolean true on success
  */
 public static function delete(Tracker_FileInfo $file_info)
 {
     $dao = new Tracker_FileInfoDao();
     return $dao->create($file_info->getId());
 }
Ejemplo n.º 2
0
 /**
  * Persist current object to the database
  *
  * @return Boolean
  */
 public function save()
 {
     $dao = new Tracker_FileInfoDao();
     $this->id = $dao->create($this->submitted_by, $this->description, $this->filename, $this->filesize, $this->filetype);
     if ($this->id) {
         return true;
     }
     return false;
 }