New placeholders in templates: this->html(attcode) and this->label(attcode)

SVN:trunk[735]
This commit is contained in:
Romain Quetiez
2010-09-01 09:07:01 +00:00
parent 77159e8766
commit 4894dd2b4c
6 changed files with 31 additions and 6 deletions

View File

@@ -39,6 +39,7 @@ class FileUploadException extends Exception
*/
class utils
{
private static $m_sConfigFile = ITOP_CONFIG_FILE;
private static $m_oConfig = null;
public static function ReadParam($sName, $defaultValue = "")
@@ -136,6 +137,15 @@ class utils
return file_get_contents($sFileName);
}
/**
* Specify the application config file
* @param string path to the config file
* @return void
*/
public static function SpecifyConfigFile($sFilePath)
{
self::$m_sConfigFile = $sFilePath;
}
/**
* Get access to the application config file
* @param none
@@ -145,7 +155,7 @@ class utils
{
if (self::$m_oConfig == null)
{
self::$m_oConfig = new Config(ITOP_CONFIG_FILE);
self::$m_oConfig = new Config(self::$m_sConfigFile);
}
return self::$m_oConfig;
}