Class IniHelper

Description

This class provides Helper methods for handling Ini Files.

  • version: $Id: IniHelper.php,v 1.3 2006/11/26 22:04:21 kpapst Exp $
  • copyright: Copyright (C) 2002-2006 Kevin Papst
  • author: Kevin Papst
  • license: GNU Public License


			
Method Summary
void loadIniFile (String $filename, [boolean $process_sections = FALSE])
boolean write_ini_file (String $filename, array $assoc_array, [String $comment = ''], [boolean $removeEmptyKeys = FALSE])
Methods
loadIniFile (line 110)

Loads an Ini File.

void loadIniFile (String $filename, [boolean $process_sections = FALSE])
  • String $filename: Name of the Ini File to load
  • boolean $process_sections: whether to parse Sections within the Ini File or not
write_ini_file (line 48)

Writes an array to an Ini File.

Knows how to handle Subarrays and how to keep global variables even if they appear after an subarray.

  • return: true on success, false on error
boolean write_ini_file (String $filename, array $assoc_array, [String $comment = ''], [boolean $removeEmptyKeys = FALSE])
  • String $filename: the full qualified Filename
  • array $assoc_array: the Array to save as Ini File
  • String $comment: Comment line at the beginning of the File
  • boolean $removeEmptyKeys: if set to TRUE each empty key will be left out

Documentation generated by phpDocumentor 1.3.1