Class: IniHelper

Source Location: /CORE/system/classes/configuration/IniHelper.php

Class IniHelper

Class Overview

This class provides Helper methods for handling Ini Files.

Located in /CORE/system/classes/configuration/IniHelper.php [line 36]



		
				Author(s):
		
  • Kevin Papst
Information Tags:
Version:  $Id: IniHelper.php,v 1.5 2008/08/18 14:34:18 kpapst Exp $
Copyright:  Copyright (C) Kevin Papst
License:  GNU Public License

Methods

[ Top ]
Method Summary
static void   loadIniFile()   Loads an Ini File.
static boolean   write_ini_file()   Writes an array to an Ini File.

[ Top ]
Methods
static method loadIniFile  [line 111]

  static void loadIniFile( String $filename, [boolean $process_sections = FALSE]  )

Loads an Ini File.

Parameters:
String   $filename:  Name of the Ini File to load
boolean   $process_sections:  whether to parse Sections within the Ini File or not

API Tags:
Access:  public


[ Top ]
static method write_ini_file  [line 49]

  static boolean write_ini_file( String $filename, array $assoc_array, [String $comment = ''], [boolean $removeEmptyKeys = FALSE]  )

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.

Parameters:
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

API Tags:
Return:  true on success, false on error


[ Top ]