當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。