protected function getElements($tagName)
	{
		$nodes = [];
		foreach ($this->template->ownerDocument->getElementsByTagName($tagName) as $node)
		{
			if (!$this->onlyIfDynamic || $this->isDynamic($node))
			{
				$nodes[] = $node;
			}
		}

		return $nodes;
	}
protected function getElements($tagName)
	{
		$nodes = [];
		foreach ($this->template->ownerDocument->getElementsByTagName($tagName) as $node)
		{
			if (!$this->onlyIfDynamic || $this->isDynamic($node))
			{
				$nodes[] = $node;
			}
		}

		return $nodes;
	}
protected function getElements ( $ tagName ) { $ nodes = [ ] ; foreach ( $ this -> template -> ownerDocument -> getElementsByTagName ( $ tagName ) as $ node ) { if ( ! $ this -> onlyIfDynamic || $ this -> isDynamic ( $ node ) ) { $ nodes [ ] = $ node ; } } return $ nodes ; }
Get all elements the restriction applies to

@param  string       $tagName Element's name
@return DOMElement[]
Get all elements the restriction applies to