Config
[ class tree: Config ] [ index: Config ] [ all elements ]

Class: Config_Container_IniFile

Source Location: /Config-1.10.12/Config/Container/IniFile.php

Class Overview


Config parser for PHP .ini files Faster because it uses parse_ini_file() but get rid of comments, quotes, types and converts On, Off, True, False, Yes, No to 0 and 1.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 27]
Config parser for PHP .ini files Faster because it uses parse_ini_file() but get rid of comments, quotes, types and converts On, Off, True, False, Yes, No to 0 and 1.

Empty lines and comments are not preserved.



[ Top ]


Class Variables

$options = array()

[line 36]

This class options Not used at the moment

Type:   array


[ Top ]



Method Detail

Config_Container_IniFile (Constructor)   [line 45]

Config_Container_IniFile Config_Container_IniFile( [string $options = array()])

Constructor
  • Access: public

Parameters:

string   $options   —  (optional)Options to be used by renderer

[ Top ]

contentToString   [line 191]

string contentToString( mixed $content)

Converts a given content variable to a string that can be used as value in a ini file
  • Return: String to be used as ini value

Parameters:

mixed   $content   —  Value

[ Top ]

parseDatasrc   [line 60]

mixed &parseDatasrc( string $datasrc, object &$obj)

Parses the data of the given configuration file
  • Return: Returns a PEAR_ERROR, if error occurs or true if ok
  • Access: public

Parameters:

string   $datasrc   —  path to the configuration file
object   &$obj   —  reference to a config object

[ Top ]

toString   [line 111]

string toString( object &$obj)

Returns a formatted string of the object
  • Access: public

Parameters:

object   &$obj   —  Container object to be output as string

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:42:04 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.