/** * It returns the value of the specified variable * This is not a value contained in a config file but a value previously * assigned in runtime by Pokelio_Global::setVar * * @param string $param Name of the variable * @param string $module Name of the variable's module * @return mixed */ public static function getVar($var, $module = 'Pokelio') { if (!isset($GLOBALS['vars' . $module][$var])) { Pokelio_Error::triggerError("Global var {$var} not defined in module {$module}."); } return $GLOBALS['vars' . $module][$var]; }