Class SGL_ImageConfig

Description

Manipulate with SGL_Image configuration.

Located in /SGL/Image.php (line 709)


	
			
Method Summary
 static void cleanup ( &$aParams, array $aParams)
 static array getAvailableParams ()
 static array getParamsFromFile (string $fileName)
 static array getParamsFromString (string $configString)
 static mixed &getProperty (string $name)
 static array getUniqueSectionNames (array $aSections)
 static boolean paramsCheck (array $aParams, [string $sectionName = ''])
 static array _getSectionData (array $aData, string $sectionName, array $override)
Methods
static cleanup (line 719)

Remove processed params from config array to keep it clean.

  • access: public
void cleanup ( &$aParams, array $aParams)
  • array $aParams
  • &$aParams
static getAvailableParams (line 781)

Get all available config params. This does not include strategies.

  • access: public
array getAvailableParams ()
static getParamsFromFile (line 799)

Extract params from file. While extracting we take into account config sections' inheritance.

  • access: public
array getParamsFromFile (string $fileName)
  • string $fileName
static getParamsFromString (line 839)

Extract params from config string.

  • access: public
array getParamsFromString (string $configString)
  • string $configString
static getProperty (line 976)

Replacement for PEAR::getStaticProperty(). Vars are initialized by putting values directly in $GLOBALS array. In that case we can ignore annoying error for PHP 5.1.6.

  • access: public
mixed &getProperty (string $name)
  • string $name
static getUniqueSectionNames (line 869)

Helper method for SGL_ImageConfig::getParamsFromFile().

array getUniqueSectionNames (array $aSections)
  • array $aSections
static paramsCheck (line 752)

Check if all params needed for SGL_Image initialization are specified.

  • access: public
boolean paramsCheck (array $aParams, [string $sectionName = ''])
  • array $aParams
  • string $sectionName
static _getSectionData (line 903)

Helper method for SGL_ImageConfig::getParamsFromFile(), which does all the dirty work i.e. merging sections' options.

array _getSectionData (array $aData, string $sectionName, array $override)
  • array $aData
  • string $sectionName
  • array $override

Documentation generated on Tue, 23 Feb 2010 18:14:30 +0000 by phpDocumentor 1.4.3