wCMF  3.6
 All Classes Namespaces Files Functions Variables Groups Pages
WCMFInifileParser Class Reference

Public Member Functions

getInstance ()
 
 getIniFiles ()
 
 getBestActionKey ($section, $resource, $context, $action)
 
 getErrorMsg ()
 
 parseIniFile ($filename, $processValues=true)
 
 getData ()
 
 getSections ()
 
 getSection ($section)
 
 getValue ($key, $section)
 

Public Attributes

 $_actionDelimiter = '?'
 

Detailed Description

WCMFInifileParser adds methods for wcmf specific inifiles. This class is a decorator to the InifileParser class, showing only the readonly methods of InifileParser in it's interface. The advantage in using the InifileParser singleton inside this class is that its instance will hold the same configuration data as the WCMFInifileParser instance does.
For this reason other classes may use the InifileParser instance not knowing about the WCMFInifileParser class at all.

wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH

Licensed under the terms of any of the following licenses at your choice:

See the license.txt file distributed with this work for additional information.

Id:
class.WCMFInifileParser.php 1462 2014-02-04 23:52:27Z iherwig
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 36 of file class.WCMFInifileParser.php.

Member Function Documentation

& WCMFInifileParser::getInstance ( )

Returns an instance of the class.

Returns
A reference to the only instance of the Singleton object

Definition at line 44 of file class.WCMFInifileParser.php.

References InifileParser\getInstance().

Referenced by RightsManager\authorize(), Controller\getViewTemplate(), Application\initialize(), ActionMapper\processAction(), Application\setupGlobals(), and PageExportController\writeOutput().

+ Here is the call graph for this function:

WCMFInifileParser::getIniFiles ( )

Get a list of available configuration files.

Returns
Array of configuration file names.
Note
static method The method relies on the following globally defined variables
  • CONFIG_PATH: the path of the configuration files
  • CONFIG_EXTENSION: the extension of configuration files (e.g. 'ini')

Definition at line 66 of file class.WCMFInifileParser.php.

Referenced by EditRightsController\executeKernel(), AdminController\executeKernel(), PrincipalController\executeKernel(), and g_getConfigFiles().

WCMFInifileParser::getBestActionKey (   $section,
  $resource,
  $context,
  $action 
)

Get an ini file key that matches a given combination of resource, context, action best.

Parameters
sectionThe section to search in.
resourceThe given resource.
contextThe given context.
actionThe given action.
Returns
The best matching key or an empty string if nothing matches.

Definition at line 80 of file class.WCMFInifileParser.php.

References InifileParser\getInstance().

+ Here is the call graph for this function:

WCMFInifileParser::getErrorMsg ( )

Implement InifileParser public readonly Interface

See Also
InifileParser::getErrorMsg()

Definition at line 154 of file class.WCMFInifileParser.php.

References InifileParser\getInstance().

+ Here is the call graph for this function:

WCMFInifileParser::parseIniFile (   $filename,
  $processValues = true 
)
See Also
InifileParser::parseIniFile()

Definition at line 162 of file class.WCMFInifileParser.php.

References InifileParser\getInstance().

+ Here is the call graph for this function:

WCMFInifileParser::getData ( )
See Also
InifileParser::getData()

Definition at line 170 of file class.WCMFInifileParser.php.

References InifileParser\getInstance().

+ Here is the call graph for this function:

WCMFInifileParser::getSections ( )
See Also
InifileParser::getSections()

Definition at line 178 of file class.WCMFInifileParser.php.

References InifileParser\getInstance().

+ Here is the call graph for this function:

WCMFInifileParser::getSection (   $section)
See Also
InifileParser::getSection()

Definition at line 186 of file class.WCMFInifileParser.php.

References InifileParser\getInstance().

+ Here is the call graph for this function:

WCMFInifileParser::getValue (   $key,
  $section 
)
See Also
InifileParser::getValue()

Definition at line 194 of file class.WCMFInifileParser.php.

References InifileParser\getInstance().

+ Here is the call graph for this function:

Member Data Documentation

WCMFInifileParser::$_actionDelimiter = '?'

Definition at line 38 of file class.WCMFInifileParser.php.


The documentation for this class was generated from the following file: