protected function getAuthenticationForm($values = array())
    {
        $form = new Form();
        $form->setMethod('POST');
        $form->setAction(PHPCI_URL . 'settings/authentication');
        $form->addField(new Form\Element\Csrf('csrf'));

        $field = new Form\Element\Checkbox('disable_authentication');
        $field->setCheckedValue(1);
        $field->setRequired(false);
        $field->setClass('ml20px');
        $field->setLabel('Disable Authentication?');
        $field->setContainerClass('form-group');
        $field->setValue(0);

        if (isset($values['state'])) {
            $field->setValue((int)$values['state']);
        }

        $form->addField($field);

        $field = new Form\Element\Submit();
        $field->setValue('Save &raquo;');
        $field->setClass('btn btn-success pull-right');
        $form->addField($field);

        $form->setValues($values);

        return $form;
    }
protected function getAuthenticationForm($values = array())
    {
        $form = new Form();
        $form->setMethod('POST');
        $form->setAction(PHPCI_URL . 'settings/authentication');
        $form->addField(new Form\Element\Csrf('csrf'));

        $field = new Form\Element\Checkbox('disable_authentication');
        $field->setCheckedValue(1);
        $field->setRequired(false);
        $field->setClass('ml20px');
        $field->setLabel('Disable Authentication?');
        $field->setContainerClass('form-group');
        $field->setValue(0);

        if (isset($values['state'])) {
            $field->setValue((int)$values['state']);
        }

        $form->addField($field);

        $field = new Form\Element\Submit();
        $field->setValue('Save &raquo;');
        $field->setClass('btn btn-success pull-right');
        $form->addField($field);

        $form->setValues($values);

        return $form;
    }
protected function getAuthenticationForm ( $ values = array ( ) ) { $ form = new Form ( ) ; $ form -> setMethod ( 'POST' ) ; $ form -> setAction ( PHPCI_URL . 'settings/authentication' ) ; $ form -> addField ( new Form \ Element \ Csrf ( 'csrf' ) ) ; $ field = new Form \ Element \ Checkbox ( 'disable_authentication' ) ; $ field -> setCheckedValue ( 1 ) ; $ field -> setRequired ( false ) ; $ field -> setClass ( 'ml20px' ) ; $ field -> setLabel ( 'Disable Authentication?' ) ; $ field -> setContainerClass ( 'form-group' ) ; $ field -> setValue ( 0 ) ; if ( isset ( $ values [ 'state' ] ) ) { $ field -> setValue ( ( int ) $ values [ 'state' ] ) ; } $ form -> addField ( $ field ) ; $ field = new Form \ Element \ Submit ( ) ; $ field -> setValue ( 'Save &raquo;' ) ; $ field -> setClass ( 'btn btn-success pull-right' ) ; $ form -> addField ( $ field ) ; $ form -> setValues ( $ values ) ; return $ form ; }
Form for disabling user authentication while using a default user

@param array $values
@return Form
Form for disabling user authentication while using a default user