Esempio n. 1
0
 /**
  * 获取当前角色
  * 
  * @return string
  */
 protected function _role()
 {
     try {
         $roleId = Zend_Registry::get('user')->getRoleId();
     } catch (ZtChart_Model_User_Exception $e) {
         $roleId = ZtChart_Model_Role::GUEST;
     }
     return ZtChart_Model_Acl_Loader::hash($roleId);
 }