本文整理汇总了PHP中Core_Model_Default::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP Core_Model_Default::delete方法的具体用法?PHP Core_Model_Default::delete怎么用?PHP Core_Model_Default::delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Core_Model_Default
的用法示例。
在下文中一共展示了Core_Model_Default::delete方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: delete
public function delete()
{
if ($this->getObject()->getId()) {
$this->getObject()->delete();
}
return parent::delete();
}
示例2: delete
public function delete()
{
if (!$this->getId()) {
return $this;
}
$this->getRootCategory()->delete();
return parent::delete();
}
示例3: delete
public function delete()
{
$category_option = new Application_Model_Option_Value();
$option_values = $category_option->findAll(array('folder_category_id' => $this->getId()));
if ($option_values->count()) {
foreach ($option_values as $option_value) {
$option_value->setFolderId(null)->setFolderCategoryId(null)->setFolderCategoryPosition(null)->save();
}
}
foreach ($this->getChildren() as $child) {
$child->delete();
}
return parent::delete();
}
示例4: delete
public function delete()
{
$this->getTable()->deleteByParentId($this->getId());
parent::delete();
return $this;
}
示例5: delete
public function delete()
{
$message_id = $this->getId();
parent::delete();
$this->getTable()->deleteLog($message_id);
}