public function buildFormElement($itemName = '', $name = '', $value = '', $id = '', $class = '', $itemValue = '', $attributes = [])
    {
        // Create form input
        $id = $id ?: 'fe' . mt_rand();
        $element = new FormElement($this->getHTMLDocument(), $itemName, $name, $value, $id, $class, $itemValue, $attributes);

        // Return form element
        return $element;
    }
public function buildFormElement($itemName = '', $name = '', $value = '', $id = '', $class = '', $itemValue = '', $attributes = [])
    {
        // Create form input
        $id = $id ?: 'fe' . mt_rand();
        $element = new FormElement($this->getHTMLDocument(), $itemName, $name, $value, $id, $class, $itemValue, $attributes);

        // Return form element
        return $element;
    }
public function buildFormElement ( $ itemName = '' , $ name = '' , $ value = '' , $ id = '' , $ class = '' , $ itemValue = '' , $ attributes = [ ] ) { // Create form input $ id = $ id ? : 'fe' . mt_rand ( ) ; $ element = new FormElement ( $ this -> getHTMLDocument ( ) , $ itemName , $ name , $ value , $ id , $ class , $ itemValue , $ attributes ) ; // Return form element return $ element ; }
Build an html form element.

@param string $itemName
@param string $name
@param string $value
@param string $id
@param string $class
@param string $itemValue
@param array  $attributes

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