src/XML/OPML/FileWriter.php
public static function save( $fileName, $tree, $encoding = "utf-8" )
	{
		$builder	= new XML_DOM_Builder();
		$xml		= $builder->build( $tree, $encoding );
		$file		= new FS_File_Writer( $fileName, 0777 );
		return $file->writeString( $xml );
	}
public static function save( $fileName, $tree, $encoding = "utf-8" )
	{
		$builder	= new XML_DOM_Builder();
		$xml		= $builder->build( $tree, $encoding );
		$file		= new FS_File_Writer( $fileName, 0777 );
		return $file->writeString( $xml );
	}
public static function save ( $ fileName , $ tree , $ encoding = "utf-8" ) { $ builder = new XML_DOM_Builder ( ) ; $ xml = $ builder -> build ( $ tree , $ encoding ) ; $ file = new FS_File_Writer ( $ fileName , 0777 ) ; return $ file -> writeString ( $ xml ) ; }
Saves OPML Tree to OPML File statically.
@access		public
@static
@param		string		$fileName		URI of OPML File
@param		XML_DOM_Node	tree		OPML Tree
@param		string			encoding	Encoding Type
@return		bool
Saves OPML Tree to OPML File statically .