public static function hasAccess($action, $controller, $extension, $parameters = array()) {
        $user = common_session_SessionManager::getSession()->getUser();
        try {
            $resolver  = ActionResolver::getByControllerName($controller, $extension);
            $className = $resolver->getController();
        } catch (ResolverException $e) {
            return false;
        }
        return AclProxy::hasAccess($user, $className, $action, $parameters);
    }
public static function hasAccess($action, $controller, $extension, $parameters = array()) {
        $user = common_session_SessionManager::getSession()->getUser();
        try {
            $resolver  = ActionResolver::getByControllerName($controller, $extension);
            $className = $resolver->getController();
        } catch (ResolverException $e) {
            return false;
        }
        return AclProxy::hasAccess($user, $className, $action, $parameters);
    }
public static function hasAccess ( $ action , $ controller , $ extension , $ parameters = array ( ) ) { $ user = common_session_SessionManager :: getSession ( ) -> getUser ( ) ; try { $ resolver = ActionResolver :: getByControllerName ( $ controller , $ extension ) ; $ className = $ resolver -> getController ( ) ; } catch ( ResolverException $ e ) { return false ; } return AclProxy :: hasAccess ( $ user , $ className , $ action , $ parameters ) ; }
Returns whenever or not the current user has access to a specified link

@param string $action
@param string $controller
@param string $extension
@param array $parameters
@return boolean
@deprecated
Returns whenever or not the current user has access to a specified link