Class TParameterModule
TParameterModule class
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 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,
<parameters> <parameter id="param1" value="paramValue1" /> <parameter id="param2" Property1="Value1" Property2="Value2" ... /> </parameters>
In addition, any content enclosed within the module tag is also treated as parameters, e.g.,
<module class="System.Util.TParameterModule"> <parameter id="param1" value="paramValue1" /> <parameter id="param2" Property1="Value1" Property2="Value2" ... /> </module>
If a parameter is defined both in the external file and within the module tag, the former takes precedence.
- TComponent
-
TApplicationComponent
-
TModule implements IModule
-
TParameterModule
Package: System\Util
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Author: Carl G. Mathisen <carlgmathisen@gmail.com>
Since: 3.0
Located at Util/TParameterModule.php
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Author: Carl G. Mathisen <carlgmathisen@gmail.com>
Since: 3.0
Located at Util/TParameterModule.php
public
|
|
protected
|
|
public
string
|
|
public
|
getID(),
setID()
|
getApplication(),
getRequest(),
getResponse(),
getService(),
getSession(),
getUser(),
publishAsset(),
publishFilePath()
|
string |
PARAM_FILE_EXT |
'.xml' |
GLOBAL_RAISE_EVENT_LISTENER
|