本文整理汇总了PHP中Gpf_DbEngine_Row::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP Gpf_DbEngine_Row::delete方法的具体用法?PHP Gpf_DbEngine_Row::delete怎么用?PHP Gpf_DbEngine_Row::delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gpf_DbEngine_Row
的用法示例。
在下文中一共展示了Gpf_DbEngine_Row::delete方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: delete
public function delete()
{
$this->load();
if (!strlen($this->getAccountId())) {
throw new Gpf_Exception($this->_('Default role can not be deleted!'));
}
return parent::delete();
}
示例2: delete
public function delete($filterId)
{
$this->set('filterid', $filterId);
$this->load();
if ($this->getPreset() == Gpf::YES) {
throw new Gpf_Exception("You cannot delete preset filter!");
}
$conditionsTable = Gpf_Db_Table_FilterConditions::getInstance();
$conditionsTable->deleteAll($filterId);
return parent::delete();
}
示例3: delete
/**
* Deletes row. Primary key value must be set before this function is called
*/
public function delete()
{
if ($this->isPrimaryKeyEmpty()) {
throw new Gpf_Exception("Could not delete Row. Primary key values are empty");
}
$this->load();
if ($this->getFileId() != "") {
try {
$file = new Gpf_Db_File();
$file->setFileId($this->getFileId());
$file->removeReference();
} catch (Gpf_DbEngine_Driver_Mysql_SqlException $e) {
}
}
return parent::delete();
}
示例4: delete
public function delete()
{
if (Gpf_Application::isDemo() && Gpf_Application::isDemoEntryId($this->getId())) {
throw new Gpf_Exception("Demo banner can not be deleted");
}
return parent::delete();
}
示例5: delete
/**
* Deletes row. Primary key value must be set before this function is called
*/
public function delete()
{
$this->load();
if ($this->getReferenced() > 0) {
return;
}
parent::delete();
}
示例6: delete
public function delete()
{
$this->load();
if ($this->isDefault()) {
throw new Gpf_Exception($this->_("Default language can't be deleted"));
}
$returnValue = parent::delete();
$this->deleteLanguageFilesFromAccount();
return $returnValue;
}
示例7: delete
public function delete()
{
parent::delete();
Gpf_Db_Table_GadgetProperties::deleteAll($this->getId());
}
示例8: deleteRow
protected function deleteRow(Gpf_DbEngine_Row $row)
{
$row->load();
$row->delete();
}