本文整理匯總了PHP中OwnedSecurableItem::afterDelete方法的典型用法代碼示例。如果您正苦於以下問題:PHP OwnedSecurableItem::afterDelete方法的具體用法?PHP OwnedSecurableItem::afterDelete怎麽用?PHP OwnedSecurableItem::afterDelete使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類OwnedSecurableItem
的用法示例。
在下文中一共展示了OwnedSecurableItem::afterDelete方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: afterDelete
protected function afterDelete()
{
foreach ($this->campaignItems as $item) {
$item->delete();
}
return parent::afterDelete();
}
示例2: afterDelete
protected function afterDelete()
{
parent::afterDelete();
$campaignitems = CampaignItem::getByProcessedAndCampaignId(0, $this->id);
foreach ($campaignitems as $campaignitem) {
ZurmoRedBean::exec("DELETE FROM campaignitemactivity WHERE campaignitem_id = " . $campaignitem->id);
}
ZurmoRedBean::exec("DELETE FROM campaignitem WHERE processed = 0 and campaign_id = " . $this->id);
}