当前位置: 首页>>代码示例>>PHP>>正文


PHP AppModel::afterDelete方法代码示例

本文整理汇总了PHP中AppModel::afterDelete方法的典型用法代码示例。如果您正苦于以下问题:PHP AppModel::afterDelete方法的具体用法?PHP AppModel::afterDelete怎么用?PHP AppModel::afterDelete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AppModel的用法示例。


在下文中一共展示了AppModel::afterDelete方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: afterDelete

 public function afterDelete()
 {
     parent::afterDelete();
     if ($this->id) {
         Cache::delete('getPracticeTitleById' . $this->id);
     }
 }
开发者ID:aichelman,项目名称:StudyUp,代码行数:7,代码来源:PracticeTest.php

示例2: afterDelete

 /**
  * afterDelete
  *
  * @return	bool
  */
 public function afterDelete()
 {
     if (!parent::afterDelete()) {
         return false;
     }
     return true;
 }
开发者ID:kingsolmn,项目名称:CakePHP-Braintree-Plugin,代码行数:12,代码来源:braintree_app_model.php

示例3: afterDelete

 public function afterDelete()
 {
     parent::afterDelete();
     $files = new Folder('files/Disography/' . $this->id);
     $files->delete();
     $cover = new Folder('files/Cover/' . $this->id);
     $cover->delete();
 }
开发者ID:thedrumz,项目名称:music,代码行数:8,代码来源:Discography.php

示例4: afterDelete

 public function afterDelete()
 {
     parent::afterDelete();
     if ('' !== $this->imageToDelete) {
         $file = new File(WWW_ROOT . '/gallery/' . $this->imageToDelete, false, 0777);
         $file->delete();
     }
 }
开发者ID:bokac1984,项目名称:genije,代码行数:8,代码来源:Gallery.php

示例5: afterDelete

 public function afterDelete()
 {
     parent::afterDelete();
     $files = new Folder('files/Project/' . $this->id);
     $files->delete();
 }
开发者ID:thedrumz,项目名称:music,代码行数:6,代码来源:Project.php

示例6: afterDelete

 /**
  * after Delete callback
  *
  * @return void
  * @access public
  */
 public function afterDelete()
 {
     parent::afterDelete();
     $this->clearCache();
 }
开发者ID:hadzi,项目名称:brekfarm,代码行数:11,代码来源:category.php

示例7: afterDelete

 function afterDelete()
 {
     parent::afterDelete();
     $this->__clearCache();
     return true;
 }
开发者ID:rchavik,项目名称:infinitas,代码行数:6,代码来源:blog_app_model.php

示例8: afterDelete

 public function afterDelete()
 {
     parent::afterDelete();
     if ($this->deletedProductId) {
         $notDeleted = $this->ProductImage->deleteImages();
         $this->log($notDeleted);
     }
 }
开发者ID:bokac1984,项目名称:genije,代码行数:8,代码来源:Product.php

示例9: afterDelete

 /**
  * After Delete
  *
  * 関連コンテンツのキャッシュを削除する 
  */
 public function afterDelete()
 {
     parent::afterDelete();
     $this->deleteAssocCache($this->__deleteTarget);
     $this->__deleteTarget = null;
 }
开发者ID:baserproject,项目名称:basercms,代码行数:11,代码来源:Content.php

示例10: afterDelete

 /**
  * 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);
 }
开发者ID:baserproject,项目名称:basercms,代码行数:23,代码来源:Site.php

示例11: afterDelete

 public function afterDelete()
 {
     $this->deleteImageFile($this->imageToDelete, $this->bannerFolder);
     parent::afterDelete();
 }
开发者ID:bokac1984,项目名称:genije,代码行数:5,代码来源:Banner.php

示例12: afterDelete

 public function afterDelete()
 {
     $this->deleteFiles();
     return parent::afterDelete();
 }
开发者ID:Ephigenia,项目名称:harrison,代码行数:5,代码来源:MediaFile.php

示例13: afterDelete

 public function afterDelete($created)
 {
     $SearchItem = ClassRegistry::init("SearchItem");
     $SearchItem->deleteAll(array("model" => "Dailyop", "foreign_key" => $this->id));
     return parent::afterDelete();
 }
开发者ID:josephbergdoll,项目名称:berrics,代码行数:6,代码来源:Dailyop.php


注:本文中的AppModel::afterDelete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。