protected function _getRole($roleField)
    {
        $role = $this->_getVar($roleField);
        if (intval($role)) {
           $role = \Gems_Roles::getInstance()->translateToRoleName($role);

           $this->_setVar($roleField, $role);
        }

        return $role;
    }
protected function _getRole($roleField)
    {
        $role = $this->_getVar($roleField);
        if (intval($role)) {
           $role = \Gems_Roles::getInstance()->translateToRoleName($role);

           $this->_setVar($roleField, $role);
        }

        return $role;
    }
protected function _getRole ( $ roleField ) { $ role = $ this -> _getVar ( $ roleField ) ; if ( intval ( $ role ) ) { $ role = \ Gems_Roles :: getInstance ( ) -> translateToRoleName ( $ role ) ; $ this -> _setVar ( $ roleField , $ role ) ; } return $ role ; }
Get a role with a check on the value in case of integers

@param string $roleField
@return mixed
Get a role with a check on the value in case of integers