/**
* Current variable group
*/
- private $currGroup = "general";
+ private $currGroup = 'general';
/**
* All template groups except "general"
*/
private function addVariable ($var, $value) {
// Set general variable group
- $this->setVariableGroup("general");
+ $this->setVariableGroup('general');
// Add it to the stack
$this->addGroupVariable($var, $value);
//* DEBIG: */ echo __METHOD__.": currGroup=".$groupName."<br />\n";
$this->currGroup = $groupName;
- // Skip group "general"
- if (($groupName != "general") && ($add === true)) {
- $this->varGroups[$groupName] = "OK";
+ // Skip group 'general'
+ if (($groupName != 'general') && ($add === true)) {
+ $this->varGroups[$groupName] = 'OK';
} // END - if
}
}
/**
- * Try to assign an extracted template variable as a "content" or "config"
+ * Try to assign an extracted template variable as a "content" or 'config'
* variable.
*
* @param $varName The variable's name (shall be content orconfig) by
*/
private function assignTemplateVariable ($varName, $var) {
// Is it not a config variable?
- if ($varName != "config") {
+ if ($varName != 'config') {
// Regular template variables
$this->assignVariable($var, "");
} else {
*/
public function assignApplicationData (ManageableApplication $appInstance) {
// Get long name and assign it
- $this->assignVariable("app_full_name" , $appInstance->getAppName());
+ $this->assignVariable('app_full_name' , $appInstance->getAppName());
// Get short name and assign it
- $this->assignVariable("app_short_name", $appInstance->getAppShortName());
+ $this->assignVariable('app_short_name', $appInstance->getAppShortName());
// Get version number and assign it
- $this->assignVariable("app_version" , $appInstance->getAppVersion());
+ $this->assignVariable('app_version' , $appInstance->getAppVersion());
}
/**