PHP 클래스 Prado\TApplicationConfiguration

This class is used internally by TApplication to parse and represent application configuration.
부터: 3.0
저자: Qiang Xue ([email protected])
저자: Carl G. Mathisen ([email protected])
상속: extends TComponent
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
getAliases ( ) : array Returns list of path alias definitions.
getExternalConfigurations ( ) : array
getIsEmpty ( ) : boolean
getModules ( ) : array Returns list of module configurations.
getParameters ( ) : array Returns list of parameter definitions.
getProperties ( ) : array Returns list of page initial property values.
getServices ( ) : array
getUsings ( ) : array Returns list of namespaces to be used.
loadFromFile ( $fname ) Parses the application configuration file.
loadFromPhp ( $config, $configPath ) Parses the application configuration given in terms of a PHP array.
loadFromXml ( $dom, $configPath ) Parses the application configuration given in terms of a TXmlElement.

보호된 메소드들

메소드 설명
loadExternalPhp ( $includeNode, $configPath ) Loads the external PHP array.
loadExternalXml ( $includeNode, $configPath ) Loads the external XML configurations.
loadModulesPhp ( $modulesNode, $configPath ) Loads the modules PHP array.
loadModulesXml ( $modulesNode, $configPath ) Loads the modules XML node.
loadParametersPhp ( $parametersNode, $configPath ) Loads the parameters PHP array.
loadParametersXml ( $parametersNode, $configPath ) Loads the parameters XML node.
loadPathsPhp ( $pathsNode, $configPath ) Loads the paths PHP array
loadPathsXml ( $pathsNode, $configPath ) Loads the paths XML node.
loadServicesPhp ( $servicesNode, $configPath ) Loads the services PHP array.
loadServicesXml ( $servicesNode, $configPath ) Loads the services XML node.

메소드 상세

getAliases() 공개 메소드

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.
public getAliases ( ) : array
리턴 array list of path alias definitions

getExternalConfigurations() 공개 메소드

public getExternalConfigurations ( ) : array
리턴 array list of external configuration files. Each element is like $filePath=>$condition

getIsEmpty() 공개 메소드

public getIsEmpty ( ) : boolean
리턴 boolean whether this configuration contains actual stuff

getModules() 공개 메소드

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.
public getModules ( ) : array
리턴 array list of module configurations to be used

getParameters() 공개 메소드

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.
public getParameters ( ) : array
리턴 array list of parameter definitions to be used

getProperties() 공개 메소드

Each array element represents a single property with the key being the property name and the value the initial property value.
public getProperties ( ) : array
리턴 array list of page initial property values

getServices() 공개 메소드

public getServices ( ) : array
리턴 array list of service configurations

getUsings() 공개 메소드

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.
public getUsings ( ) : array
리턴 array list of namespaces to be used

loadExternalPhp() 보호된 메소드

Loads the external PHP array.
protected loadExternalPhp ( $includeNode, $configPath )

loadExternalXml() 보호된 메소드

Loads the external XML configurations.
protected loadExternalXml ( $includeNode, $configPath )

loadFromFile() 공개 메소드

Parses the application configuration file.
public loadFromFile ( $fname )

loadFromPhp() 공개 메소드

Parses the application configuration given in terms of a PHP array.
public loadFromPhp ( $config, $configPath )

loadFromXml() 공개 메소드

Parses the application configuration given in terms of a TXmlElement.
public loadFromXml ( $dom, $configPath )

loadModulesPhp() 보호된 메소드

Loads the modules PHP array.
protected loadModulesPhp ( $modulesNode, $configPath )

loadModulesXml() 보호된 메소드

Loads the modules XML node.
protected loadModulesXml ( $modulesNode, $configPath )

loadParametersPhp() 보호된 메소드

Loads the parameters PHP array.
protected loadParametersPhp ( $parametersNode, $configPath )

loadParametersXml() 보호된 메소드

Loads the parameters XML node.
protected loadParametersXml ( $parametersNode, $configPath )

loadPathsPhp() 보호된 메소드

Loads the paths PHP array
protected loadPathsPhp ( $pathsNode, $configPath )

loadPathsXml() 보호된 메소드

Loads the paths XML node.
protected loadPathsXml ( $pathsNode, $configPath )

loadServicesPhp() 보호된 메소드

Loads the services PHP array.
protected loadServicesPhp ( $servicesNode, $configPath )

loadServicesXml() 보호된 메소드

Loads the services XML node.
protected loadServicesXml ( $servicesNode, $configPath )