Метод |
Описание |
|
__construct ( string $filename = null, integer $flags = null, integer $mode ) |
takes an optional filename, if the file exists, also reads it. |
|
__toString ( ) : string |
text presentation of the config object |
|
clear ( ) : Config_Lite |
removes all sections and global options |
|
count ( ) : integer |
implemented for interface Countable |
|
get ( string $sec = null, string $key = null, mixed $default = null ) : mixed |
get an option by section, a global option or all sections and options |
|
getBool ( string $sec, string $key, boolean $default = null ) : boolean |
returns a boolean for strict equality comparison |
|
getFilename ( ) : string |
returns the current filename |
|
getIterator ( ) : Iterator |
implemented for interface IteratorAggregate |
|
getSection ( string $sec, array $default = null ) : array |
returns an array of options of the given section |
|
getString ( string $sec, string $key, mixed $default = null ) : string |
returns a stripslashed string |
|
has ( string $sec, string $key = null ) : boolean |
tests if a section or an option of a section exists |
|
hasSection ( string $sec ) : boolean |
returns true if the given section exists, otherwise false |
|
offsetExists ( string $offset ) : boolean |
implemented for interface ArrayAccess |
|
offsetGet ( string $offset ) : mixed |
implemented for interface ArrayAccess |
|
offsetSet ( string $offset, mixed $value ) : void |
implemented for interface ArrayAccess |
|
offsetUnset ( string $offset ) : void |
implemented for interface ArrayAccess |
|
read ( string $filename = null, integer $mode = INI_SCANNER_NORMAL ) : Config_Lite |
the read method parses the optional given filename
or already setted filename. |
|
remove ( string $sec, string $key = null ) : void |
remove a section or an option of a section |
|
removeSection ( string $sec ) : void |
remove section by name |
|
save ( ) : boolean |
save the object to the filename
(active record style) |
|
serialize ( ) : integer |
implemented for interface Serializable |
|
set ( string $sec, string $key, mixed $value = null ) : Config_Lite |
to add key/value pairs |
|
setDoubleTickDelimiter ( ) : Config_Lite |
set string delimiter to double tick (") |
|
setFilename ( string $filename ) : Config_Lite |
filename to read or save |
|
setFlags ( integer $flags = LOCK_EX ) : Config_Lite |
Set Flags ( FILE_USE_INCLUDE_PATH | FILE_APPEND | LOCK_EX )
for file-put-contents |
|
setLinebreak ( string $linebreakchars ) : Config_Lite |
set the line break (newline) chars |
|
setProcessSections ( boolean $processSections ) : Config_Lite |
Sets whether or not sections should be processed |
|
setQuoteStrings ( boolean $quoteStrings ) : Config_Lite |
Sets whether or not to doubleQuote |
|
setSection ( string $sec, array $pairs ) : Config_Lite |
set a given array with key/value pairs to a section,
creates a new section if necessary. |
|
setSingleTickDelimiter ( ) : Config_Lite |
set string delimiter to single tick (') |
|
setString ( string $sec, string $key, mixed $value = null ) : Config_Lite |
like set, but adds slashes to the value |
|
sync ( ) : Config_Lite |
sync the file to the object |
|
toBool ( string $value ) : string |
converts string to a representable Config Bool Format |
|
unserialize ( string $serializedData ) : void |
implemented for interface Serializable |
|
write ( string $filename, array $sectionsarray, integer $flags = null ) : boolean |
generic write ini config file, to save use `save'. |
|