public function buildTextarea($name = '', $value = '', $id = '', $class = '', $autofocus = false, $required = false, $attributes = [])
    {
        // Create Form Item
        $id = $id ?: 'ftxt' . mt_rand();
        $element = $this->buildFormElement($itemName = 'textarea', $name, $id, $value, $class, $itemValue = '', $attributes);
        $element->nodeValue($value);

        // Set attributes
        $element->attr('autofocus', $autofocus);
        $element->attr('required', $required);

        // Return form element
        return $element;
    }
public function buildTextarea($name = '', $value = '', $id = '', $class = '', $autofocus = false, $required = false, $attributes = [])
    {
        // Create Form Item
        $id = $id ?: 'ftxt' . mt_rand();
        $element = $this->buildFormElement($itemName = 'textarea', $name, $id, $value, $class, $itemValue = '', $attributes);
        $element->nodeValue($value);

        // Set attributes
        $element->attr('autofocus', $autofocus);
        $element->attr('required', $required);

        // Return form element
        return $element;
    }
public function buildTextarea ( $ name = '' , $ value = '' , $ id = '' , $ class = '' , $ autofocus = false , $ required = false , $ attributes = [ ] ) { // Create Form Item $ id = $ id ? : 'ftxt' . mt_rand ( ) ; $ element = $ this -> buildFormElement ( $ itemName = 'textarea' , $ name , $ id , $ value , $ class , $ itemValue = '' , $ attributes ) ; $ element -> nodeValue ( $ value ) ; // Set attributes $ element -> attr ( 'autofocus' , $ autofocus ) ; $ element -> attr ( 'required' , $ required ) ; // Return form element return $ element ; }
Build an html form textarea.

@param string $name       The textarea's name.
@param string $value      The textarea's default value.
@param string $id         The textarea's id attribute
@param string $class      The extra class for the textarea.
@param bool   $autofocus  Inserts the autofocus attribute to the input.
@param bool   $required   Indicates this textarea as required.
@param array  $attributes A set of extra attributes

@return FormElement
@throws Exception
Build an html form textarea .