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


PHP BlockController::delete方法代码示例

本文整理汇总了PHP中Concrete\Core\Block\BlockController::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP BlockController::delete方法的具体用法?PHP BlockController::delete怎么用?PHP BlockController::delete使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Concrete\Core\Block\BlockController的用法示例。


在下文中一共展示了BlockController::delete方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: delete

 public function delete()
 {
     $db = Database::connection();
     $params = array($this->bID);
     $query = "DELETE FROM btTextListEntries WHERE bID = ?";
     $db->query($query, $params);
     parent::delete();
 }
开发者ID:pier5,项目名称:text-list,代码行数:8,代码来源:controller.php

示例2: delete

 public function delete()
 {
     $arLayout = $this->getAreaLayoutObject();
     if (is_object($arLayout)) {
         $arLayout->delete();
     }
     parent::delete();
 }
开发者ID:ngreimel,项目名称:kovent,代码行数:8,代码来源:controller.php

示例3: delete

 public function delete()
 {
     $db = Database::connection();
     $v = array($this->bID);
     $q = "DELETE FROM btSurveyOptions WHERE bID = ?";
     $db->query($q, $v);
     $q = "DELETE FROM btSurveyResults WHERE bID = ?";
     $db->query($q, $v);
     parent::delete();
 }
开发者ID:masteramuk,项目名称:concrete5,代码行数:10,代码来源:controller.php

示例4: delete

 function delete()
 {
     $db = Loader::db();
     $v = array($this->bID);
     $q = "DELETE FROM btSurveyOptions WHERE bID = ?";
     $db->query($q, $v);
     $q = "DELETE FROM btSurveyResults WHERE bID = ?";
     $db->query($q, $v);
     return parent::delete();
 }
开发者ID:meixelsberger,项目名称:concrete5-5.7.0,代码行数:10,代码来源:controller.php

示例5: delete

 public function delete()
 {
     parent::delete();
     $entity = $this->getFormEntity()->getEntity();
     $entityManager = \Core::make('database/orm')->entityManager();
     // Important – are other blocks in the system using this form? If so, we don't want to delete it!
     $db = $entityManager->getConnection();
     $r = $db->fetchColumn('select count(bID) from btExpressForm where bID <> ? and exFormID = ?', [$this->bID, $this->exFormID]);
     if ($r == 0) {
         $entityManager->remove($entity);
         $entityManager->flush();
     }
 }
开发者ID:ppiedaderawnet,项目名称:concrete5,代码行数:13,代码来源:controller.php

示例6: delete

 public function delete()
 {
     parent::delete();
     if ($this->gaID) {
         $gathering = Gathering::getByID($this->gaID);
         if (is_object($gathering)) {
             $gathering->delete();
         }
     }
 }
开发者ID:ceko,项目名称:concrete5-1,代码行数:10,代码来源:controller.php

示例7: delete

 /**
  * Make sure to delete all files associated w/ the block record in secondary table.
  * @return void
  */
 public function delete()
 {
     Loader::db()->Execute("DELETE FROM {$this->btTableSecondary} WHERE bID = ?", array($this->bID));
     return parent::delete();
 }
开发者ID:jhartman86,项目名称:jhmrfc,代码行数:9,代码来源:controller.php

示例8: delete

 public function delete()
 {
     $db = Loader::db();
     $db->delete('btFundamentalSlickSlide', array('bID' => $this->bID));
     parent::delete();
 }
开发者ID:baardev,项目名称:lbtb,代码行数:6,代码来源:controller.php

示例9: delete

 public function delete()
 {
     $db = Database::getActiveConnection();
     $db->delete('btManualNavEntries', array('bID' => $this->bID));
     parent::delete();
 }
开发者ID:kohki-shikata,项目名称:Manual-Nav,代码行数:6,代码来源:controller.php


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