protected function createLoginForm($showToken = null, $showPasswordLost = null)
    {
        $args = \MUtil_Ra::args(func_get_args(),
                array(
                    'showToken' => 'is_boolean',
                    'showPasswordLost' => 'is_boolean',
                    ),
                array(
                    'showToken' => $this->showTokenButton,
                    'showPasswordLost' => $this->showPasswordLostButton,
                    'labelWidthFactor' => $this->labelWidthFactor,
                    'organizationMaxLines' => $this->organizationMaxLines,
                    ));

        \Gems_Html::init();

        if ($this->layeredLogin === true) {
            // Allow to set labels without modifying the form by overriding the below methods
            $args['topOrganizationDescription']   = $this->getTopOrganizationDescription();
            $args['childOrganizationDescription'] = $this->getChildOrganizationDescription();

            return $this->loader->getUserLoader()->getLayeredLoginForm($args);

        } else {
            return $this->loader->getUserLoader()->getLoginForm($args);
        }
    }
protected function createLoginForm($showToken = null, $showPasswordLost = null)
    {
        $args = \MUtil_Ra::args(func_get_args(),
                array(
                    'showToken' => 'is_boolean',
                    'showPasswordLost' => 'is_boolean',
                    ),
                array(
                    'showToken' => $this->showTokenButton,
                    'showPasswordLost' => $this->showPasswordLostButton,
                    'labelWidthFactor' => $this->labelWidthFactor,
                    'organizationMaxLines' => $this->organizationMaxLines,
                    ));

        \Gems_Html::init();

        if ($this->layeredLogin === true) {
            // Allow to set labels without modifying the form by overriding the below methods
            $args['topOrganizationDescription']   = $this->getTopOrganizationDescription();
            $args['childOrganizationDescription'] = $this->getChildOrganizationDescription();

            return $this->loader->getUserLoader()->getLayeredLoginForm($args);

        } else {
            return $this->loader->getUserLoader()->getLoginForm($args);
        }
    }
protected function createLoginForm ( $ showToken = null , $ showPasswordLost = null ) { $ args = \ MUtil_Ra :: args ( func_get_args ( ) , array ( 'showToken' => 'is_boolean' , 'showPasswordLost' => 'is_boolean' , ) , array ( 'showToken' => $ this -> showTokenButton , 'showPasswordLost' => $ this -> showPasswordLostButton , 'labelWidthFactor' => $ this -> labelWidthFactor , 'organizationMaxLines' => $ this -> organizationMaxLines , ) ) ; \ Gems_Html :: init ( ) ; if ( $ this -> layeredLogin === true ) { // Allow to set labels without modifying the form by overriding the below methods $ args [ 'topOrganizationDescription' ] = $ this -> getTopOrganizationDescription ( ) ; $ args [ 'childOrganizationDescription' ] = $ this -> getChildOrganizationDescription ( ) ; return $ this -> loader -> getUserLoader ( ) -> getLayeredLoginForm ( $ args ) ; } else { return $ this -> loader -> getUserLoader ( ) -> getLoginForm ( $ args ) ; } }
Returns a login form

@param boolean $showToken Optional, show 'Ask token' button, $this->showTokenButton is used when not specified
@param boolean $showPasswordLost Optional, show 'Lost password' button, $this->showPasswordLostButton is used when not specified
@return \Gems_User_Form_LoginForm
Returns a login form