Reads and writes files in the ".ini" format
The Properties class is able to read sections and their values, as well as to create or change existent sections and keys.
Located in /core/util/Properties.class.php (line 40)
PHP2Go | --Properties
Whether read/write of keys should be case-sensitive
Current section name
File path
Whether sections should be processed
Properties read from the file
Class constructor
Adds a comment
The comments are always added in the end of sections, or in the end of the file, when the processing of sections is disabled.
Adds a new section
This section will be set as current section, so that further calls to setValue will add/change keys of this section.
Fetches current section
Fetches the contents of the first section
Returns FALSE when the processing of sections is disabled.
Fetches the next section
Returns FALSE when there is no next action or when processing sections is disabled.
Reads the value of a key as an array
Reads the value of a key as boolean
Renders and returns the file contents
Gets current section name
Gets the name of the first section
Returns FALSE when the processing of sections is disabled.
Moves the internal pointer to the next section
Returns the fetched section name, or FALSE when the end was reached or when processing sections is disabled.
Fetches a section by name
Reads a value, given its key
If $section is omitted, the current loaded section will be used. The $fallback value will be used when $key is not found.
Checks if a given section exists
Checks if the value of a key matches a given pattern
Rebuilds the internal table based on the original file
Renders and saves the file contents
Adds an array key
The array will be imploded using the given $glue string.
Adds a boolean key
Adds or changes a key
Used to create the file when it doesn't exist
Used to load the contents of the file
Inherited From PHP2Go
PHP2Go::PHP2Go()
PHP2Go::equals()
PHP2Go::generateUniqueId()
PHP2Go::getClassName()
PHP2Go::getConfigVal()
PHP2Go::getLangVal()
PHP2Go::getObjectName()
PHP2Go::getParentName()
PHP2Go::hasDestructor()
PHP2Go::hashCode()
PHP2Go::isA()
PHP2Go::isSubclassOf()
PHP2Go::logError()
PHP2Go::raiseError()
PHP2Go::registerDestructor()
PHP2Go::registerShutdownFunc()
PHP2Go::retrieve()
PHP2Go::store()
PHP2Go::__toString()
Documentation generated on Sun, 07 Oct 2007 19:28:35 -0300 by phpDocumentor 1.3.2