Пример #1
0
 /**
  * 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();
 }