Class TApplicationConfiguration

Description

TApplicationConfiguration class.

This class is used internally by TApplication to parse and represent application configuration.

Located in /TApplication.php (line 1275)

TComponent
   |
   --TApplicationConfiguration
Method Summary
array getAliases ()
boolean getIsEmpty ()
array getModules ()
array getParameters ()
array getProperties ()
array getServices ()
array getUsings ()
void loadExternalPhp (array $includeNode, string $configPath)
void loadExternalXml (TXmlElement $includeNode, string $configPath)
void loadFromFile (string $fname)
void loadFromPhp (array $config, string $configPath)
void loadFromXml (TXmlElement $dom, string $configPath)
void loadModulesPhp (array $modulesNode, string $configPath)
void loadModulesXml (TXmlElement $modulesNode, string $configPath)
void loadParametersPhp (array $parametersNode, string $configPath)
void loadParametersXml (TXmlElement $parametersNode, string $configPath)
void loadPathsPhp (array $pathsNode, string $configPath)
void loadPathsXml (TXmlElement $pathsNode, string $configPath)
void loadServicesPhp (array $servicesNode, string $configPath)
void loadServicesXml (TXmlElement $servicesNode, string $configPath)
Methods
getAliases (line 1702)

Returns list of path alias definitions.

The definitions are aggregated (top-down) from configuration files along the path to the specified page. Each array element represents a single alias definition, with the key being the alias name and the value the absolute path.

  • return: list of path alias definitions
  • access: public
array getAliases ()
getExternalConfigurations (line 1766)
  • return: list of external configuration files. Each element is like $filePath=>$condition
  • access: public
array getExternalConfigurations ()
getIsEmpty (line 1333)
  • return: whether this configuration contains actual stuff
  • access: public
boolean getIsEmpty ()
getModules (line 1733)

Returns list of module configurations.

The module configurations are aggregated (top-down) from configuration files along the path to the specified page. Each array element represents a single module configuration, with the key being the module ID and the value the module configuration. Each module configuration is stored in terms of an array with the following content ([0]=>module type, [1]=>module properties, [2]=>complete module configuration) The module properties are an array of property values indexed by property names. The complete module configuration is a TXmlElement object representing the raw module configuration which may contain contents enclosed within module tags.

  • return: list of module configurations to be used
  • access: public
array getModules ()
getParameters (line 1758)

Returns list of parameter definitions.

The parameter definitions are aggregated (top-down) from configuration files along the path to the specified page. Each array element represents a single parameter definition, with the key being the parameter ID and the value the parameter definition. A parameter definition can be either a string representing a string-typed parameter, or an array. The latter defines a component-typed parameter whose format is as follows, ([0]=>component type, [1]=>component properties) The component properties are an array of property values indexed by property names.

  • return: list of parameter definitions to be used
  • access: public
array getParameters ()
getProperties (line 1690)

Returns list of page initial property values.

Each array element represents a single property with the key being the property name and the value the initial property value.

  • return: list of page initial property values
  • access: public
array getProperties ()
getServices (line 1741)
  • return: list of service configurations
  • access: public
array getServices ()
getUsings (line 1714)

Returns list of namespaces to be used.

The namespaces are aggregated (top-down) from configuration files along the path to the specified page. Each array element represents a single namespace usage, with the value being the namespace to be used.

  • return: list of namespaces to be used
  • access: public
array getUsings ()
loadExternalPhp (line 1650)

Loads the external PHP array.

  • access: protected
void loadExternalPhp (array $includeNode, string $configPath)
  • array $includeNode: the application PHP array
  • string $configPath: the context path (for specifying relative paths)
loadExternalXml (line 1671)

Loads the external XML configurations.

  • access: protected
void loadExternalXml (TXmlElement $includeNode, string $configPath)
  • TXmlElement $includeNode: the application DOM element
  • string $configPath: the context path (for specifying relative paths)
loadFromFile (line 1315)

Parses the application configuration file.

  • throws: TConfigurationException if there is any parsing error
  • access: public
void loadFromFile (string $fname)
  • string $fname: configuration file name
loadFromPhp (line 1343)

Parses the application configuration given in terms of a PHP array.

  • access: public
void loadFromPhp (array $config, string $configPath)
  • array $config: the PHP array
  • string $configPath: the context path (for specifying relative paths)
loadFromXml (line 1376)

Parses the application configuration given in terms of a TXmlElement.

  • access: public
void loadFromXml (TXmlElement $dom, string $configPath)
  • TXmlElement $dom: the XML element
  • string $configPath: the context path (for specifying relative paths)
loadModulesPhp (line 1495)

Loads the modules PHP array.

  • access: protected
void loadModulesPhp (array $modulesNode, string $configPath)
  • array $modulesNode: the modules PHP array
  • string $configPath: the context path (for specifying relative paths)
loadModulesXml (line 1520)

Loads the modules XML node.

  • access: protected
void loadModulesXml (TXmlElement $modulesNode, string $configPath)
  • TXmlElement $modulesNode: the modules XML node
  • string $configPath: the context path (for specifying relative paths)
loadParametersPhp (line 1593)

Loads the parameters PHP array.

  • access: protected
void loadParametersPhp (array $parametersNode, string $configPath)
  • array $parametersNode: the parameters PHP array
  • string $configPath: the context path (for specifying relative paths)
loadParametersXml (line 1620)

Loads the parameters XML node.

  • access: protected
void loadParametersXml (TXmlElement $parametersNode, string $configPath)
  • TXmlElement $parametersNode: the parameters XML node
  • string $configPath: the context path (for specifying relative paths)
loadPathsPhp (line 1416)

Loads the paths PHP array

  • access: protected
void loadPathsPhp (array $pathsNode, string $configPath)
  • array $pathsNode: the paths PHP array
  • string $configPath: the context path (for specifying relative paths)
loadPathsXml (line 1449)

Loads the paths XML node.

  • access: protected
void loadPathsXml (TXmlElement $pathsNode, string $configPath)
  • TXmlElement $pathsNode: the paths XML node
  • string $configPath: the context path (for specifying relative paths)
loadServicesPhp (line 1548)

Loads the services PHP array.

  • access: protected
void loadServicesPhp (array $servicesNode, string $configPath)
  • array $servicesNode: the services PHP array
  • string $configPath: the context path (for specifying relative paths)
loadServicesXml (line 1568)

Loads the services XML node.

  • access: protected
void loadServicesXml (TXmlElement $servicesNode, string $configPath)
  • TXmlElement $servicesNode: the services XML node
  • string $configPath: the context path (for specifying relative paths)

Inherited Methods

Inherited From TComponent

TComponent::addParsedObject()
TComponent::attachEventHandler()
TComponent::canGetProperty()
TComponent::canSetProperty()
TComponent::createdOnTemplate()
TComponent::detachEventHandler()
TComponent::evaluateExpression()
TComponent::evaluateStatements()
TComponent::getEventHandlers()
TComponent::getSubProperty()
TComponent::hasEvent()
TComponent::hasEventHandler()
TComponent::hasProperty()
TComponent::raiseEvent()
TComponent::setSubProperty()
TComponent::__call()
TComponent::__get()
TComponent::__set()
TComponent::__sleep()
TComponent::__wakeup()

Documentation generated on Mon, 25 Jun 2012 14:37:18 +0200 by phpDocumentor 1.4.3