public function children($pattern = null)
	{
		if (!is_null($pattern))
		{
			$list = array();

			foreach ($this->_children as $Child)
			{
				if ($this->_fnmatch($pattern, $Child->name()))
				{
					$list[] = $Child;
				}
			}

			return $list;
		}

		return $this->_children;
	}
public function children($pattern = null)
	{
		if (!is_null($pattern))
		{
			$list = array();

			foreach ($this->_children as $Child)
			{
				if ($this->_fnmatch($pattern, $Child->name()))
				{
					$list[] = $Child;
				}
			}

			return $list;
		}

		return $this->_children;
	}
public function children ( $ pattern = null ) { if ( ! is_null ( $ pattern ) ) { $ list = array ( ) ; foreach ( $ this -> _children as $ Child ) { if ( $ this -> _fnmatch ( $ pattern , $ Child -> name ( ) ) ) { $ list [ ] = $ Child ; } } return $ list ; } return $ this -> _children ; }
Get an array of child nodes for this XML node

@param string $pattern
@return QuickBooks_XML_Node[]
Get an array of child nodes for this XML node