htmlHelper::__call PHP Method

__call() public method

Creates virtual wrapper methods via $this->_tagBuilder() for the simple wrapper functions including: $html->css, js, cssInline, jsInline, div, li, p and h1-h4
public __call ( string $method, $args ) : string
$method string
return string
    public function __call($method, $args)
    {
        $validTags = array('css', 'js', 'cssSingleton', 'jsSingleton', 'jqueryTheme', 'cssInline', 'jsInline', 'jsInlineSingleton', 'cssInlineSingleton', 'div', 'li', 'p', 'h1', 'h2', 'h3', 'h4');
        if (in_array($method, $validTags)) {
            return $this->_tagBuilder($method, $args);
        } else {
            $errorMsg = 'Call to undefined method ' . __CLASS__ . '::' . $method . '()';
            trigger_error($errorMsg, E_USER_ERROR);
        }
    }