src/FS/File/Block/Writer.php
public function writeBlocks( $blocks )
	{
		foreach( $blocks as $name => $content )
		{
			$list[]	= str_replace( "{#name#}", $name, $this->patternSection );
			$list[]	= $content;
			$list[]	= "";
		}
		$file	= new FS_File_Writer( $this->fileName );
		return $file->writeArray( $list );
	}
public function writeBlocks( $blocks )
	{
		foreach( $blocks as $name => $content )
		{
			$list[]	= str_replace( "{#name#}", $name, $this->patternSection );
			$list[]	= $content;
			$list[]	= "";
		}
		$file	= new FS_File_Writer( $this->fileName );
		return $file->writeArray( $list );
	}
public function writeBlocks ( $ blocks ) { foreach ( $ blocks as $ name => $ content ) { $ list [ ] = str_replace ( "{#name#}" , $ name , $ this -> patternSection ) ; $ list [ ] = $ content ; $ list [ ] = "" ; } $ file = new FS_File_Writer ( $ this -> fileName ) ; return $ file -> writeArray ( $ list ) ; }
Writes Blocks to Block File.
@access		public
@param		array		$blocks			Associative Array with Block Names and Contents
@return		int
Writes Blocks to Block File .