PHP Класс Prado\Util\TParameterModule

TParameterModule enables loading application parameters from external storage other than the application configuration. To load parameters from an XML file, configure the module by setting its {@link setParameterFile ParameterFile} property. Note, the property only accepts a file path in namespace format with file extension being '.xml'. The file format is as follows, which is similar to the parameter portion in an application configuration, In addition, any content enclosed within the module tag is also treated as parameters, e.g., If a parameter is defined both in the external file and within the module tag, the former takes precedence.
С версии: 3.0
Автор: Qiang Xue ([email protected])
Автор: Carl G. Mathisen ([email protected])
Наследование: extends Prado\TModule
Показать файл Открыть проект

Открытые методы

Метод Описание
getParameterFile ( ) : string
init ( $config ) Initializes the module by loading parameters.
setParameterFile ( $value )

Защищенные методы

Метод Описание
loadParameters ( $config ) Loads parameters into application.

Описание методов

getParameterFile() публичный Метод

public getParameterFile ( ) : string
Результат string the parameter file path

init() публичный Метод

Initializes the module by loading parameters.
public init ( $config )

loadParameters() защищенный Метод

Loads parameters into application.
protected loadParameters ( $config )

setParameterFile() публичный Метод

public setParameterFile ( $value )