本文整理汇总了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);
}
}
示例2: afterDelete
/**
* afterDelete
*
* @return bool
*/
public function afterDelete()
{
if (!parent::afterDelete()) {
return false;
}
return true;
}
示例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();
}
示例4: afterDelete
public function afterDelete()
{
parent::afterDelete();
if ('' !== $this->imageToDelete) {
$file = new File(WWW_ROOT . '/gallery/' . $this->imageToDelete, false, 0777);
$file->delete();
}
}
示例5: afterDelete
public function afterDelete()
{
parent::afterDelete();
$files = new Folder('files/Project/' . $this->id);
$files->delete();
}
示例6: afterDelete
/**
* after Delete callback
*
* @return void
* @access public
*/
public function afterDelete()
{
parent::afterDelete();
$this->clearCache();
}
示例7: afterDelete
function afterDelete()
{
parent::afterDelete();
$this->__clearCache();
return true;
}
示例8: afterDelete
public function afterDelete()
{
parent::afterDelete();
if ($this->deletedProductId) {
$notDeleted = $this->ProductImage->deleteImages();
$this->log($notDeleted);
}
}
示例9: afterDelete
/**
* After Delete
*
* 関連コンテンツのキャッシュを削除する
*/
public function afterDelete()
{
parent::afterDelete();
$this->deleteAssocCache($this->__deleteTarget);
$this->__deleteTarget = null;
}
示例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);
}
示例11: afterDelete
public function afterDelete()
{
$this->deleteImageFile($this->imageToDelete, $this->bannerFolder);
parent::afterDelete();
}
示例12: afterDelete
public function afterDelete()
{
$this->deleteFiles();
return parent::afterDelete();
}
示例13: afterDelete
public function afterDelete($created)
{
$SearchItem = ClassRegistry::init("SearchItem");
$SearchItem->deleteAll(array("model" => "Dailyop", "foreign_key" => $this->id));
return parent::afterDelete();
}