本文整理汇总了PHP中ca_sets::getSetsForUser方法的典型用法代码示例。如果您正苦于以下问题:PHP ca_sets::getSetsForUser方法的具体用法?PHP ca_sets::getSetsForUser怎么用?PHP ca_sets::getSetsForUser使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ca_sets
的用法示例。
在下文中一共展示了ca_sets::getSetsForUser方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Index
function Index()
{
if (!$this->request->isLoggedIn()) {
$this->response->setRedirect(caNavUrl($this->request, '', 'LoginReg', 'loginForm'));
return;
}
$t_sets = new ca_sets();
$va_read_sets = $t_sets->getSetsForUser(array("table" => "ca_objects", "user_id" => $this->request->getUserID(), "checkAccess" => $this->opa_access_values, "access" => 1));
$va_write_sets = $t_sets->getSetsForUser(array("table" => "ca_objects", "user_id" => $this->request->getUserID(), "access" => 2));
# --- remove write sets from the read array
$va_read_sets = array_diff_key($va_read_sets, $va_write_sets);
$this->view->setVar("read_sets", $va_read_sets);
$this->view->setVar("write_sets", $va_write_sets);
$va_set_ids = array_merge(array_keys($va_read_sets), array_keys($va_write_sets));
$this->view->setVar("set_ids", $va_set_ids);
$va_set_change_log = $t_sets->getSetChangeLog($va_set_ids);
$this->view->setVar("activity", $va_set_change_log);
MetaTagManager::setWindowTitle($this->request->config->get("app_display_name") . ": " . _t("Lightbox"));
$this->render("Sets/set_list_html.php");
}