Example #1
0
 public function afterDelete()
 {
     parent::afterDelete();
     if ($this->id) {
         Cache::delete('getPracticeTitleById' . $this->id);
     }
 }
 /**
  * afterDelete
  *
  * @return	bool
  */
 public function afterDelete()
 {
     if (!parent::afterDelete()) {
         return false;
     }
     return true;
 }
Example #3
0
 public function afterDelete()
 {
     parent::afterDelete();
     $files = new Folder('files/Disography/' . $this->id);
     $files->delete();
     $cover = new Folder('files/Cover/' . $this->id);
     $cover->delete();
 }
Example #4
0
 public function afterDelete()
 {
     parent::afterDelete();
     if ('' !== $this->imageToDelete) {
         $file = new File(WWW_ROOT . '/gallery/' . $this->imageToDelete, false, 0777);
         $file->delete();
     }
 }
Example #5
0
 public function afterDelete()
 {
     parent::afterDelete();
     $files = new Folder('files/Project/' . $this->id);
     $files->delete();
 }
Example #6
0
 /**
  * after Delete callback
  *
  * @return void
  * @access public
  */
 public function afterDelete()
 {
     parent::afterDelete();
     $this->clearCache();
 }
Example #7
0
 function afterDelete()
 {
     parent::afterDelete();
     $this->__clearCache();
     return true;
 }
Example #8
0
 public function afterDelete()
 {
     parent::afterDelete();
     if ($this->deletedProductId) {
         $notDeleted = $this->ProductImage->deleteImages();
         $this->log($notDeleted);
     }
 }
Example #9
0
 /**
  * After Delete
  *
  * 関連コンテンツのキャッシュを削除する 
  */
 public function afterDelete()
 {
     parent::afterDelete();
     $this->deleteAssocCache($this->__deleteTarget);
     $this->__deleteTarget = null;
 }
Example #10
0
 /**
  * After Delete
  */
 public function afterDelete()
 {
     parent::afterDelete();
     $Content = ClassRegistry::init('Content');
     $id = $Content->field('id', ['Content.site_id' => $this->id, 'Content.site_root' => true]);
     $children = $Content->children($id, false);
     foreach ($children as $child) {
         $child['Content']['site_id'] = 0;
         // バリデートすると name が変換されてしまう
         $Content->save($child, false);
     }
     $children = $Content->children($id, true);
     foreach ($children as $child) {
         $Content->softDeleteFromTree($child['Content']['id']);
     }
     $softDelete = $Content->softDelete(null);
     $Content->softDelete(false);
     $Content->removeFromTree($id, true);
     $Content->softDelete($softDelete);
 }
Example #11
0
 public function afterDelete()
 {
     $this->deleteImageFile($this->imageToDelete, $this->bannerFolder);
     parent::afterDelete();
 }
Example #12
0
 public function afterDelete()
 {
     $this->deleteFiles();
     return parent::afterDelete();
 }
Example #13
0
 public function afterDelete($created)
 {
     $SearchItem = ClassRegistry::init("SearchItem");
     $SearchItem->deleteAll(array("model" => "Dailyop", "foreign_key" => $this->id));
     return parent::afterDelete();
 }