本文整理汇总了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();
}
示例2: delete
public function delete()
{
$arLayout = $this->getAreaLayoutObject();
if (is_object($arLayout)) {
$arLayout->delete();
}
parent::delete();
}
示例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();
}
示例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();
}
示例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();
}
}
示例6: delete
public function delete()
{
parent::delete();
if ($this->gaID) {
$gathering = Gathering::getByID($this->gaID);
if (is_object($gathering)) {
$gathering->delete();
}
}
}
示例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();
}
示例8: delete
public function delete()
{
$db = Loader::db();
$db->delete('btFundamentalSlickSlide', array('bID' => $this->bID));
parent::delete();
}
示例9: delete
public function delete()
{
$db = Database::getActiveConnection();
$db->delete('btManualNavEntries', array('bID' => $this->bID));
parent::delete();
}