protected function generateTextinput($options, $currentValue = null)
    {
        $value = is_null($currentValue) ? $options['value'] : $currentValue;

        if (!is_string($value)) {
            $value = "";
        }

        if (!array_key_exists("type", $options)) {
            $options["type"] = "text";
        }

        unset($options["value"]);

        return sprintf('<input %s value="%s">', $this->arrayToHtmlAttributes($options), $value);
    }
protected function generateTextinput($options, $currentValue = null)
    {
        $value = is_null($currentValue) ? $options['value'] : $currentValue;

        if (!is_string($value)) {
            $value = "";
        }

        if (!array_key_exists("type", $options)) {
            $options["type"] = "text";
        }

        unset($options["value"]);

        return sprintf('<input %s value="%s">', $this->arrayToHtmlAttributes($options), $value);
    }
protected function generateTextinput ( $ options , $ currentValue = null ) { $ value = is_null ( $ currentValue ) ? $ options [ 'value' ] : $ currentValue ; if ( ! is_string ( $ value ) ) { $ value = "" ; } if ( ! array_key_exists ( "type" , $ options ) ) { $ options [ "type" ] = "text" ; } unset ( $ options [ "value" ] ) ; return sprintf ( '<input %s value="%s">' , $ this -> arrayToHtmlAttributes ( $ options ) , $ value ) ; }
Generates a basic text field
@param  array $options
@param  string $currentValue (Optional)
@return string
Generates a basic text field