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
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
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 )