コード例 #1
0
 /**
  * If any src_org is deleted, the entire cache for that source needs to
  * be refreshed.
  *
  * @param Doctrine_Event $event
  */
 public function postDelete($event)
 {
     parent::postDelete($event);
     SrcOrgCache::refresh_cache($this->Source);
     $this->Source->set_and_save_src_status();
 }
コード例 #2
0
 /**
  * Cleanup on delete
  *
  * @param unknown $event
  */
 public function postDelete($event)
 {
     if ($this->img_uuid) {
         $dir = self::get_directory($this->img_ref_type, $this->img_uuid);
         air2_rmdir($dir);
     }
     parent::postDelete($event);
 }