src/FS/File/INI/Creator.php
public function write( $fileName )
	{
		$lines	= array();
		if( $this->useSections )
		{
			foreach( $this->data as $section => $sectionPairs )
			{
				$lines[]	= "[".$section."]";
				foreach ( $sectionPairs as $key => $data )
				{
					$value		= $data['value'];
					$comment	= $data['comment'];
					$lines[]	= $this->buildLine( $key, $value, $comment);
				}
				$lines[]	= "";
			}
		}
		else
		{
			foreach( $this->data as $key => $data )
			{
				$value		= $data['value'];
				$comment	= $data['comment'];
				$lines[]	= $this->buildLine( $key, $value, $comment);
			}
			$lines[]	= "";
		}
		$file		= new FS_File_Writer( $fileName, 0664 );
		return $file->writeArray( $lines );
	}
public function write( $fileName )
	{
		$lines	= array();
		if( $this->useSections )
		{
			foreach( $this->data as $section => $sectionPairs )
			{
				$lines[]	= "[".$section."]";
				foreach ( $sectionPairs as $key => $data )
				{
					$value		= $data['value'];
					$comment	= $data['comment'];
					$lines[]	= $this->buildLine( $key, $value, $comment);
				}
				$lines[]	= "";
			}
		}
		else
		{
			foreach( $this->data as $key => $data )
			{
				$value		= $data['value'];
				$comment	= $data['comment'];
				$lines[]	= $this->buildLine( $key, $value, $comment);
			}
			$lines[]	= "";
		}
		$file		= new FS_File_Writer( $fileName, 0664 );
		return $file->writeArray( $lines );
	}
public function write ( $ fileName ) { $ lines = array ( ) ; if ( $ this -> useSections ) { foreach ( $ this -> data as $ section => $ sectionPairs ) { $ lines [ ] = "[" . $ section . "]" ; foreach ( $ sectionPairs as $ key => $ data ) { $ value = $ data [ 'value' ] ; $ comment = $ data [ 'comment' ] ; $ lines [ ] = $ this -> buildLine ( $ key , $ value , $ comment ) ; } $ lines [ ] = "" ; } } else { foreach ( $ this -> data as $ key => $ data ) { $ value = $ data [ 'value' ] ; $ comment = $ data [ 'comment' ] ; $ lines [ ] = $ this -> buildLine ( $ key , $ value , $ comment ) ; } $ lines [ ] = "" ; } $ file = new FS_File_Writer ( $ fileName , 0664 ) ; return $ file -> writeArray ( $ lines ) ; }
Creates and writes Settings to File.
@access		public
@param		string		$fileName		File Name of new Ini File
@return		bool
Creates and writes Settings to File .