src/FS/File/List/SectionWriter.php
public static function save( $fileName, $list )
	{
		$lines = array();
		foreach( $list as $section => $data )
		{
			if( count( $lines ) )
				$lines[] = "";
			$lines[] = "[".$section."]";
			foreach( $data as $entry )
				$lines[] = $entry;
		}
		$writer	= new FS_File_Writer( $fileName, 0755 );
		return $writer->writeArray( $lines );
	}
public static function save( $fileName, $list )
	{
		$lines = array();
		foreach( $list as $section => $data )
		{
			if( count( $lines ) )
				$lines[] = "";
			$lines[] = "[".$section."]";
			foreach( $data as $entry )
				$lines[] = $entry;
		}
		$writer	= new FS_File_Writer( $fileName, 0755 );
		return $writer->writeArray( $lines );
	}
public static function save ( $ fileName , $ list ) { $ lines = array ( ) ; foreach ( $ list as $ section => $ data ) { if ( count ( $ lines ) ) $ lines [ ] = "" ; $ lines [ ] = "[" . $ section . "]" ; foreach ( $ data as $ entry ) $ lines [ ] = $ entry ; } $ writer = new FS_File_Writer ( $ fileName , 0755 ) ; return $ writer -> writeArray ( $ lines ) ; }
Saves a Section List to a File.
@access		public
@static
@param		string		$fileName		File Name of Section List
@param		array		$list			Section List to write
@return		void
Saves a Section List to a File .