get_components_from_node() public static method

Given a node, returns an array of all the components inside that node. If the node is a component itself, returns an array of only one element.
public static get_components_from_node ( DomNode $node ) : array
$node DomNode
return array
Example #1
0
 /**
  * Get a component from a node.
  *
  * @param DomNode $node
  * @return Component
  * @access private
  */
 private function get_components_from_node($node)
 {
     return Component_Factory::get_components_from_node($node);
 }