src/FS/File/Configuration/Converter.php
protected static function saveJson( $fileName, $data )
	{
		$json	= array();
		foreach( $data as $sectionName => $sectionData )
		{
			foreach( $sectionData as $pair )
			{
				$key	= $pair['key'];
				unset( $pair['key'] );
				$json[$sectionName][$key]	= $pair;
			}
		}
		$json	= ADT_JSON_Formater::format( $json, TRUE );
		return FS_File_Writer::save( $fileName, $json );
	}
protected static function saveJson( $fileName, $data )
	{
		$json	= array();
		foreach( $data as $sectionName => $sectionData )
		{
			foreach( $sectionData as $pair )
			{
				$key	= $pair['key'];
				unset( $pair['key'] );
				$json[$sectionName][$key]	= $pair;
			}
		}
		$json	= ADT_JSON_Formater::format( $json, TRUE );
		return FS_File_Writer::save( $fileName, $json );
	}
protected static function saveJson ( $ fileName , $ data ) { $ json = array ( ) ; foreach ( $ data as $ sectionName => $ sectionData ) { foreach ( $ sectionData as $ pair ) { $ key = $ pair [ 'key' ] ; unset ( $ pair [ 'key' ] ) ; $ json [ $ sectionName ] [ $ key ] = $ pair ; } } $ json = ADT_JSON_Formater :: format ( $ json , TRUE ) ; return FS_File_Writer :: save ( $ fileName , $ json ) ; }
Saves Configuration Data as JSON File and returns Number of written Bytes.
@access		protected
@static
@param		string		$fileName		File Name of JSON File
@param		array		$data			Configuration Data as Array
@return		int
Saves Configuration Data as JSON File and returns Number of written Bytes .