*/
private static $instance;
- /**
- * Application name
- * @var string
- */
- private $application = 'Unknown ISSO Project';
-
- /**
- * Application path
- * @var string
- */
- private $appPath;
-
- /**
- * Application version
- * @var string
- */
- private $appVersion;
-
- /**
- * Web path
- * @var string
- */
- private $webPath;
-
/**
* Debug mode?
* @var bool
return self::$instance;
}
- // ###################################################################
- /**
- * Sets the application name
- *
- * @param string Application name
- */
- public static function set_application($name)
- {
- self::_instance()->application = $name;
- }
-
- // ###################################################################
- /**
- * Gets the application name
- *
- * @return string Application name
- */
- public static function get_application()
- {
- return self::_instance()->application;
- }
-
- // ###################################################################
- /**
- * Sets the application's working path
- *
- * @param string Path
- */
- public static function set_app_path($path)
- {
- self::_instance()->appPath = BSFunctions::fetch_source_path($path);
- }
-
- // ###################################################################
- /**
- * Returns the path to the application
- *
- * @return string Application path
- */
- public static function get_app_path()
- {
- return self::_instance()->appPath;
- }
-
- // ###################################################################
- /**
- * Sets the application version
- *
- * @param string Application version
- */
- public static function set_app_version($vers)
- {
- self::_instance()->appVersion = $vers;
- }
-
- // ###################################################################
- /**
- * Gets the application version
- *
- * @return string Application version
- */
- public static function get_app_version()
- {
- return self::_instance()->appVersion;
- }
-
- // ###################################################################
- /**
- * Sets the application's web path, which is the full path from the
- * server's web root
- *
- * @param string Path
- */
- public static function set_web_path($path)
- {
- self::_instance()->webPath = BSFunctions::fetch_source_path($path);
- }
-
- // ###################################################################
- /**
- * Returns the web path to the application
- *
- * @return string Application's web path
- */
- public static function get_web_path()
- {
- return self::_instance()->webPath;
- }
-
// ###################################################################
/**
* Sets the debug state