src/Alg/Tree/Menu/Converter.php
public static function convertFromOpml( $opml, $labelRoot, $rootClass = NULL )
	{
		$parser		= new XML_OPML_Parser();
		$parser->parse( $opml );
		$lines		= $parser->getOutlines();
		$list		= new ADT_Tree_Menu_List( $labelRoot, array( 'class' => $rootClass ) );

		self::buildMenuListFromOutlines( $lines, $list );
		return $list;
	}
public static function convertFromOpml( $opml, $labelRoot, $rootClass = NULL )
	{
		$parser		= new XML_OPML_Parser();
		$parser->parse( $opml );
		$lines		= $parser->getOutlines();
		$list		= new ADT_Tree_Menu_List( $labelRoot, array( 'class' => $rootClass ) );

		self::buildMenuListFromOutlines( $lines, $list );
		return $list;
	}
public static function convertFromOpml ( $ opml , $ labelRoot , $ rootClass = NULL ) { $ parser = new XML_OPML_Parser ( ) ; $ parser -> parse ( $ opml ) ; $ lines = $ parser -> getOutlines ( ) ; $ list = new ADT_Tree_Menu_List ( $ labelRoot , array ( 'class' => $ rootClass ) ) ; self :: buildMenuListFromOutlines ( $ lines , $ list ) ; return $ list ; }
Converts an OPML String to a Tree Menu List.
@access		public
@static
@param		string		$opml			OPML String
@param		string		$labelRoot		Label of Top Tree Menu List
@param		string		$rootClass		CSS Class of root node
@return		ADT_Tree_Menu_List
Converts an OPML String to a Tree Menu List .