本文整理汇总了PHP中role::_get方法的典型用法代码示例。如果您正苦于以下问题:PHP role::_get方法的具体用法?PHP role::_get怎么用?PHP role::_get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类role
的用法示例。
在下文中一共展示了role::_get方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$hitlist = array();
$search = slashfix($_POST['search']);
$qry = DBFactory::getDBQuery();
$qry->execute('select usr_login from kb3_user where usr_login like ' . "'%" . $search . "%'");
while ($row = $qry->getRow()) {
$hitlist[] = $row['usr_login'];
}
$smarty->assignByRef('role', $_POST['role']);
$smarty->assignByRef('user', $hitlist);
$smarty->assign('url', edkURI::page("admin_roles"));
$page->addContext($menubox->generate());
$page->setContent($smarty->fetch(get_tpl('admin_roles_assign')));
$page->generate();
} elseif ($_POST['action'] == 'assign') {
$qry = DBFactory::getDBQuery();
$tmp = role::_get($_POST['role']);
var_dump($tmp);
#$qry->execute('select usr_login from kb3_user where usr_login like '."'%".$search."%'");
} elseif ($_POST['action'] == 'create') {
$page->addContext($menubox->generate());
$page->setContent('to be done');
$page->generate();
} else {
$hardcoded =& role::get(true);
$softcoded =& role::get();
$smarty->assignByRef('hroles', $hardcoded);
$smarty->assignByRef('sroles', $softcoded);
$smarty->assign('url', edkURI::page("admin_roles"));
$page->addContext($menubox->generate());
$page->setContent($smarty->fetch(get_tpl('admin_roles')));
$page->generate();