[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/framework/Util/ -> TParameterModule.php (sommaire)

TParameterModule class

Author: Qiang Xue <qiang.xue@gmail.com>
Copyright: Copyright © 2005 PradoSoft
License: http://www.pradosoft.com/license/
Version: $Id: TParameterModule.php 1397 2006-09-07 07:55:53Z wei $
Poids: 131 lignes (4 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

TParameterModule:: (4 méthodes):
  init()
  loadParameters()
  getParameterFile()
  setParameterFile()


Classe: TParameterModule  - X-Ref

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 {@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,
<code>
<parameters>
<parameter id="param1" value="paramValue1" />
<parameter id="param2" Property1="Value1" Property2="Value2" ... />
</parameters>
</code>

In addition, any content enclosed within the module tag is also treated
as parameters, e.g.,
<code>
<module class="System.Util.TParameterModule">
<parameter id="param1" value="paramValue1" />
<parameter id="param2" Property1="Value1" Property2="Value2" ... />
</module>
</code>

If a parameter is defined both in the external file and within the module
tag, the former takes precedence.

init($config)   X-Ref
Initializes the module by loading parameters.

param: TXmlElement content enclosed within the module tag

loadParameters($xmlNode)   X-Ref
Loads parameters into application.

param: TXmlElement XML representation of the parameters

getParameterFile()   X-Ref

return: string the parameter file path

setParameterFile($value)   X-Ref

param: string the parameter file path. It must be in namespace format



Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7