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


PHP Gpf_DbEngine_Row::delete方法代码示例

本文整理汇总了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();
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:8,代码来源:Role.class.php

示例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();
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:11,代码来源:Filter.class.php

示例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();
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:19,代码来源:Wallpaper.class.php

示例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();
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:7,代码来源:Impression.php

示例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();
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:11,代码来源:File.class.php

示例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;
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:10,代码来源:Rpc.php

示例7: delete

 public function delete()
 {
     parent::delete();
     Gpf_Db_Table_GadgetProperties::deleteAll($this->getId());
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:5,代码来源:Gadget.class.php

示例8: deleteRow

 protected function deleteRow(Gpf_DbEngine_Row $row)
 {
     $row->load();
     $row->delete();
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:5,代码来源:MailOutboxForm.class.php


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