public function select($name = null, array $options = array(), $value = null, $attr = null, $first = null)
    {
        $select = new Input\Select($name);

        if($name)
            $select->attr('id', $name);

        if(count($options) > 0)
            $select->options($options);
        elseif (isset($this->dataOptions[$name]))
            $select->options($this->dataOptions[$name]);

        if($value)
            $select->value($value);
        else if(isset($this->data[$name]))
            $select->value($this->data[$name]);

        if($attr)
            $select->attr($attr);

        if(isset($this->override[$name]))
            $select->override($this->override[$name]);

        if($first)
            $select->first($first);

        return $select;
    }
public function select($name = null, array $options = array(), $value = null, $attr = null, $first = null)
    {
        $select = new Input\Select($name);

        if($name)
            $select->attr('id', $name);

        if(count($options) > 0)
            $select->options($options);
        elseif (isset($this->dataOptions[$name]))
            $select->options($this->dataOptions[$name]);

        if($value)
            $select->value($value);
        else if(isset($this->data[$name]))
            $select->value($this->data[$name]);

        if($attr)
            $select->attr($attr);

        if(isset($this->override[$name]))
            $select->override($this->override[$name]);

        if($first)
            $select->first($first);

        return $select;
    }
public function select ( $ name = null , array $ options = array ( ) , $ value = null , $ attr = null , $ first = null ) { $ select = new Input \ Select ( $ name ) ; if ( $ name ) $ select -> attr ( 'id' , $ name ) ; if ( count ( $ options ) > 0 ) $ select -> options ( $ options ) ; elseif ( isset ( $ this -> dataOptions [ $ name ] ) ) $ select -> options ( $ this -> dataOptions [ $ name ] ) ; if ( $ value ) $ select -> value ( $ value ) ; else if ( isset ( $ this -> data [ $ name ] ) ) $ select -> value ( $ this -> data [ $ name ] ) ; if ( $ attr ) $ select -> attr ( $ attr ) ; if ( isset ( $ this -> override [ $ name ] ) ) $ select -> override ( $ this -> override [ $ name ] ) ; if ( $ first ) $ select -> first ( $ first ) ; return $ select ; }
Create select input
@param string|null $name
@param array $options
@param string|null $value
@param array|string|null $attr
@param mixed|null $first
@return Input\Select
Create select input