static void
appPath
([ $file = ''])
static void
configPath
([ $file = ''])
init path from JELIX_APP_* defines or define JELIX_APP_*, depending of how the bootstrap has been initialized.
The goal of this method is to support the transition between the old way of defining path, and the new way in jelix 1.3.
static void
initLegacy
()
initialize the application paths
Warning: given paths should be ended by a directory separator.
static void
initPaths
(string $appPath, [string $wwwPath = null], [string $varPath = null], [string $logPath = null], [string $configPath = null], [string $scriptPath = null])
-
string
$appPath: application directory
-
string
$wwwPath: www directory
-
string
$varPath: var directory
-
string
$logPath: log directory
-
string
$configPath: config directory
-
string
$scriptPath: scripts directory
indicate if path have been set
static boolean
isInit
()
load a plugin from a plugin directory (any type of plugins)
static null|object
loadPlugin
(string $name, string $type, string $suffix, string $classname, [mixed $args = null])
-
string
$name: the name of the plugin
-
string
$type: the type of the plugin
-
string
$suffix: the suffix of the filename
-
string
$classname: the name of the class to instancy
-
mixed
$args: the argument for the constructor of the class. null = no argument.
static void
logPath
([ $file = ''])
restore the previous context of the application
static void
restoreContext
()
save all path and others variables relatives to the application, so you can
temporary change the context to an other application
static void
saveContext
()
static void
scriptsPath
([ $file = ''])
static void
setEnv
( $env)
static void
setTempBasePath
( $path)
static void
tempBasePath
()
static void
tempPath
([ $file = ''])
static void
varPath
([ $file = ''])
static void
wwwPath
([ $file = ''])