public function get($paramId) { self::$configFilePath = dirname(__FILE__) . '/../../config/parameters.json'; if (count(self::$config) == 0) { self::$config = json_decode(file_get_contents(self::$configFilePath)); } return self::$config->{$paramId}; }
/** * Reset the current state of the config back to before it was read in via the * self::readInConfigFile function. * */ public static function resetConfigSettings() { self::$configSettings = NULL; self::$configFilePath = NULL; }