gan_node_html.php
protected function createNodes($content) {
        if (is_string($content)) {
            if (strpos($content, ' ') === false) {
                $nodes = array(new $this->childClass($content, $this));
            } else {
                $node = new $this->parserClass($content);
                $nodes = $node->root->children;
            }
        } else {
            $nodes = (array)$content;
        }
        return $nodes;
    }
protected function createNodes($content) {
        if (is_string($content)) {
            if (strpos($content, ' ') === false) {
                $nodes = array(new $this->childClass($content, $this));
            } else {
                $node = new $this->parserClass($content);
                $nodes = $node->root->children;
            }
        } else {
            $nodes = (array)$content;
        }
        return $nodes;
    }
protected function createNodes ( $ content ) { if ( is_string ( $ content ) ) { if ( strpos ( $ content , ' ' ) === false ) { $ nodes = array ( new $ this -> childClass ( $ content , $ this ) ) ; } else { $ node = new $ this -> parserClass ( $ content ) ; $ nodes = $ node -> root -> children ; } } else { $ nodes = ( array ) $ content ; } return $ nodes ; }
Create an array of {@link DomNode} objects from their string representation.
@param string|DomNode $content
@return DomNode[]
Create an array of {