Redaxscript\Html\Form::__call PHP Method

__call() public method

call method as needed
Since: 2.6.0
public __call ( string $method = null, array $argumentArray = [] ) : Form
$method string name of the method
$argumentArray array arguments of the method
return Form
    public function __call($method = null, $argumentArray = [])
    {
        /* input */
        if (array_key_exists($method, $this->_attributeArray['input'])) {
            return $this->_createInput($method, $argumentArray[0]);
        }
        /* button */
        if (array_key_exists($method, $this->_attributeArray['button'])) {
            return $this->_createButton($method, $argumentArray[0], $argumentArray[1]);
        }
        /* link */
        if (array_key_exists($method, $this->_attributeArray['link'])) {
            return $this->_createLink($method, $argumentArray[0], $argumentArray[1]);
        }
    }