protected function getBuildForm($values = array())
    {
        $form = new Form();
        $form->setMethod('POST');
        $form->setAction(PHPCI_URL . 'settings/build');

        $field = new Form\Element\Select('failed_after');
        $field->setRequired(false);
        $field->setLabel(Lang::get('failed_after'));
        $field->setClass('form-control');
        $field->setContainerClass('form-group');
        $field->setOptions(array(
            300 => Lang::get('5_mins'),
            900 => Lang::get('15_mins'),
            1800 => Lang::get('30_mins'),
            3600 => Lang::get('1_hour'),
            10800 => Lang::get('3_hours'),
        ));
        $field->setValue(1800);
        $form->addField($field);


        $field = new Form\Element\Submit();
        $field->setValue(Lang::get('save'));
        $field->setClass('btn btn-success pull-right');
        $form->addField($field);

        $form->setValues($values);

        return $form;
    }
protected function getBuildForm($values = array())
    {
        $form = new Form();
        $form->setMethod('POST');
        $form->setAction(PHPCI_URL . 'settings/build');

        $field = new Form\Element\Select('failed_after');
        $field->setRequired(false);
        $field->setLabel(Lang::get('failed_after'));
        $field->setClass('form-control');
        $field->setContainerClass('form-group');
        $field->setOptions(array(
            300 => Lang::get('5_mins'),
            900 => Lang::get('15_mins'),
            1800 => Lang::get('30_mins'),
            3600 => Lang::get('1_hour'),
            10800 => Lang::get('3_hours'),
        ));
        $field->setValue(1800);
        $form->addField($field);


        $field = new Form\Element\Submit();
        $field->setValue(Lang::get('save'));
        $field->setClass('btn btn-success pull-right');
        $form->addField($field);

        $form->setValues($values);

        return $form;
    }
protected function getBuildForm ( $ values = array ( ) ) { $ form = new Form ( ) ; $ form -> setMethod ( 'POST' ) ; $ form -> setAction ( PHPCI_URL . 'settings/build' ) ; $ field = new Form \ Element \ Select ( 'failed_after' ) ; $ field -> setRequired ( false ) ; $ field -> setLabel ( Lang :: get ( 'failed_after' ) ) ; $ field -> setClass ( 'form-control' ) ; $ field -> setContainerClass ( 'form-group' ) ; $ field -> setOptions ( array ( 300 => Lang :: get ( '5_mins' ) , 900 => Lang :: get ( '15_mins' ) , 1800 => Lang :: get ( '30_mins' ) , 3600 => Lang :: get ( '1_hour' ) , 10800 => Lang :: get ( '3_hours' ) , ) ) ; $ field -> setValue ( 1800 ) ; $ form -> addField ( $ field ) ; $ field = new Form \ Element \ Submit ( ) ; $ field -> setValue ( Lang :: get ( 'save' ) ) ; $ field -> setClass ( 'btn btn-success pull-right' ) ; $ form -> addField ( $ field ) ; $ form -> setValues ( $ values ) ; return $ form ; }
Get the Build settings form.
@param array $values
@return Form
Get the Build settings form .