source/Application/Controller/UserController.php
public function getLoginOption()
    {
        if ($this->_iOption === null) {
            // passing user chosen option value to display correct content
            $option = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('option');
            // if user chosen "Option 2"" - we should show user details only if he is authorized
            if ($option == 2 && !$this->getUser()) {
                $option = 0;
            }
            $this->_iOption = $option;
        }

        return $this->_iOption;
    }
public function getLoginOption()
    {
        if ($this->_iOption === null) {
            // passing user chosen option value to display correct content
            $option = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('option');
            // if user chosen "Option 2"" - we should show user details only if he is authorized
            if ($option == 2 && !$this->getUser()) {
                $option = 0;
            }
            $this->_iOption = $option;
        }

        return $this->_iOption;
    }
public function getLoginOption ( ) { if ( $ this -> _iOption === null ) { // passing user chosen option value to display correct content $ option = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( 'option' ) ; // if user chosen "Option 2"" - we should show user details only if he is authorized if ( $ option == 2 && ! $ this -> getUser ( ) ) { $ option = 0 ; } $ this -> _iOption = $ option ; } return $ this -> _iOption ; }
Template variable getter. Returns user login option

@return integer
Template variable getter . Returns user login option