protected function processAuth($sName, array $aArgs)
    {
        if (class_exists('\extensions\core\Auth')) {
            $oAuth = new \extensions\core\Auth($this->ctrl->getRequest());
            $oAuth->run();
            if ($oAuth->isValid()) {
                $this->callActon($sName, $aArgs);
            } else {
                $oAuth->onFail();
            }
        } else {
            $this->callActon($sName, $aArgs);
        }
    }
protected function processAuth($sName, array $aArgs)
    {
        if (class_exists('\extensions\core\Auth')) {
            $oAuth = new \extensions\core\Auth($this->ctrl->getRequest());
            $oAuth->run();
            if ($oAuth->isValid()) {
                $this->callActon($sName, $aArgs);
            } else {
                $oAuth->onFail();
            }
        } else {
            $this->callActon($sName, $aArgs);
        }
    }
protected function processAuth ( $ sName , array $ aArgs ) { if ( class_exists ( '\extensions\core\Auth' ) ) { $ oAuth = new \ extensions \ core \ Auth ( $ this -> ctrl -> getRequest ( ) ) ; $ oAuth -> run ( ) ; if ( $ oAuth -> isValid ( ) ) { $ this -> callActon ( $ sName , $ aArgs ) ; } else { $ oAuth -> onFail ( ) ; } } else { $ this -> callActon ( $ sName , $ aArgs ) ; } }
The method calls user's auth checking, on successful complition of which
it invokes the target controller and the onFail method of Auth class in
other case.
@param string $sName The action name.
@param mixed[] $aArgs The action parameters.
The method calls user s auth checking on successful complition of which it invokes the target controller and the onFail method of Auth class in other case .