本文整理汇总了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;
}