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

Class: ConfigParser

Source Location: /common/Utils.php

Class Overview


Tools for configuration files parsing


Methods



Class Details

[line 379]
Tools for configuration files parsing



[ Top ]


Class Methods


method parseObjectArray [line 401]

array parseObjectArray( Config $config, string $prefix, string $suffixes)

Converts a list of values taken from a configuration file to an array of objects

File structure example:

   scales.0.label = 1/2
   scales.0.value = 2
   scales.0.visible = false
   scales.1.label = 1/5
   scales.1.value = 5

Parameter $suffixes contains an array of possible suffixes (array('label','value','visible') in the example).




Tags:

return:  of stdClass objects
access:  public
static:  


Parameters:

Config   $config   configuration
string   $prefix   prefix
string   $suffixes   possible suffixes

[ Top ]


Documentation generated on Thu, 04 Sep 2008 11:40:01 +0200 by phpDocumentor 1.3.0RC3