本文整理匯總了PHP中iaLanguage::delete方法的典型用法代碼示例。如果您正苦於以下問題:PHP iaLanguage::delete方法的具體用法?PHP iaLanguage::delete怎麽用?PHP iaLanguage::delete使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類iaLanguage
的用法示例。
在下文中一共展示了iaLanguage::delete方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: _entryDelete
protected function _entryDelete($entryId)
{
$this->_iaCore->startHook('phpAdminBeforePlanDelete', array('entryId' => $entryId));
$result = parent::_entryDelete($entryId);
if ($result) {
// here we should drop the "for_plan" column of fields
// if there are no more plans exist
if (0 === (int) $this->_iaDb->one(iaDb::STMT_COUNT_ROWS)) {
$this->_iaDb->update(array('for_plan' => 0), iaDb::convertIds(1, 'for_plan'), null, iaField::getTable());
}
iaLanguage::delete(self::PATTERN_TITLE . $entryId);
iaLanguage::delete(self::PATTERN_DESCRIPTION . $entryId);
}
return $result;
}
示例2: deleteUsergroup
public function deleteUsergroup($entryId)
{
$this->iaDb->setTable(iaUsers::getUsergroupsTable());
$usergroup = $this->iaDb->row(iaDb::ALL_COLUMNS_SELECTION, iaDb::convertIds($entryId));
$result = $this->iaDb->delete(iaDb::convertIds($entryId));
if ($result) {
// delete language records
iaLanguage::delete('usergroup_' . $usergroup['name']);
$this->iaDb->delete('`type` = :type AND `type_id` = :id', 'acl_privileges', array('type' => 'group', 'id' => $entryId));
// TODO: use the class method for this
$this->iaDb->update(array('usergroup_id' => iaUsers::MEMBERSHIP_REGULAR), iaDb::convertIds((int) $entryId, 'usergroup_id'), null, iaUsers::getTable());
}
$this->iaDb->resetTable();
return $result;
}