本文整理汇总了PHP中SearchResult::clearResultCacheForRow方法的典型用法代码示例。如果您正苦于以下问题:PHP SearchResult::clearResultCacheForRow方法的具体用法?PHP SearchResult::clearResultCacheForRow怎么用?PHP SearchResult::clearResultCacheForRow使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SearchResult
的用法示例。
在下文中一共展示了SearchResult::clearResultCacheForRow方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: delete
/**
* Check user's item level access before passing delete to lower level libraries
*
*/
public function delete($pb_delete_related = false, $pa_options = null, $pa_fields = null, $pa_table_list = null)
{
global $AUTH_CURRENT_USER_ID;
if ($this->getAppConfig()->get('perform_item_level_access_checking')) {
if ($this->checkACLAccessForUser(new ca_users($AUTH_CURRENT_USER_ID)) < __CA_ACL_EDIT_DELETE_ACCESS__) {
$this->postError(2580, _t("You do not have delete access for this item"), "BundlableLabelableBaseModelWithAttributes->delete()");
return false;
}
}
SearchResult::clearResultCacheForRow($this->tableName(), $this->getPrimaryKey());
return parent::delete($pb_delete_related, $pa_options, $pa_fields, $pa_table_list);
}