本文整理匯總了PHP中ca_users::getRoleList方法的典型用法代碼示例。如果您正苦於以下問題:PHP ca_users::getRoleList方法的具體用法?PHP ca_users::getRoleList怎麽用?PHP ca_users::getRoleList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ca_users
的用法示例。
在下文中一共展示了ca_users::getRoleList方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getRoleList
/**
* Get list of all roles supported by the application. If you want to get the current user's roles, use getUserRoles()
*
* @return array Returns associative array of roles. Key is role id, value is array containing information about the role.
*
* The role information array contains the following keys:
* role_id (numeric id you can use in addRoles(), deleteRoles(), hasRole(), etc.)
* name (the full name of the role)
* code (a short code used for the role)
* description (narrative description of role)
*/
public function getRoleList()
{
$t_user = new ca_users();
return $t_user->getRoleList();
}