Property | Type | Description | |
---|---|---|---|
$appPath | |||
$config | object containing all configuration options of the application | ||
$configAutoloader | |||
$configPath | |||
$env | |||
$logPath | |||
$router | Jelix\Routing\Router | The current router | |
$scriptPath | |||
$tempBasePath | |||
$varPath | |||
$wwwPath |
Property | Type | Description | |
---|---|---|---|
$_allModulesPath | |||
$_allPluginsPath | |||
$_modulesContext | |||
$_modulesDirPath | |||
$_modulesPath | |||
$_pluginsDirPath | |||
$_version |
Method | Description | |
---|---|---|
__clone ( ) | ||
__construct ( string $appPath, string $wwwPath = null, string $varPath = null, string $logPath = null, string $configPath = null, string $scriptPath = null ) | initialize the application paths. | |
__destruct ( ) | ||
clearModulesPluginsPath ( ) | ||
declareModule ( $modulePath ) | declare a module. | |
declareModulesDir ( string | array $basePath, $modules = null ) | Declare a list of modules. | |
declarePluginsDir ( string | string[] $basePath ) | Declare a directory containing some plugins. Note that it does not need to declare 'plugins/' inside modules, as there are declared automatically when you declare modules. | |
getAllModulesPath ( ) : string[] | returns all modules path, even those are not used by the application. | |
getAllPluginsPath ( ) : string[] | return all paths of directories containing plugins, even those which are in disabled modules. | |
getCurrentModule ( ) : string | get the module name of the current context. | |
getDeclaredModulesDir ( ) | ||
getModulePath ( string $module, boolean $includingExternal = false ) : string | return the real path of an enabled module. | |
includePlugin ( string $name, string $type, string $suffix, string $classname ) : boolean | include the file of a plugin from a plugin directory (any type of plugins). | |
isModuleEnabled ( string $moduleName, boolean $includingExternal = false ) : boolean | Says if the given module $name is enabled. | |
loadPlugin ( string $name, string $type, string $suffix, string $classname, mixed $constructArg = null ) : null | object | load a plugin from a plugin directory (any type of plugins). | |
onRestoringAsContext ( ) | ||
popCurrentModule ( ) : string | cancel the current context and set the context to the previous module. | |
pushCurrentModule ( string $module ) | set the context to the given module. | |
setConfig ( $config ) | ||
setPaths ( $appPath, $wwwPath = null, $varPath = null, $logPath = null, $configPath = null, $scriptPath = null ) | ||
version ( ) : string | return the version of the application containing into a VERSION file It doesn't read the version from project.xml or composer.json. |
Method | Description | |
---|---|---|
registerAutoload ( ) | ||
unregisterAutoload ( ) |
public __construct ( string $appPath, string $wwwPath = null, string $varPath = null, string $logPath = null, string $configPath = null, string $scriptPath = null ) | ||
$appPath | string | application directory |
$wwwPath | string | www directory |
$varPath | string | var directory |
$logPath | string | log directory |
$configPath | string | config directory |
$scriptPath | string | scripts directory |
public declareModulesDir ( string | array $basePath, $modules = null ) | ||
$basePath | string | array | the directory path containing modules that can be used |
public declarePluginsDir ( string | string[] $basePath ) | ||
$basePath | string | string[] | the directory path containing plugins that can be used |
public getAllModulesPath ( ) : string[] | ||
return | string[] | keys are module name, values are paths |
public getAllPluginsPath ( ) : string[] | ||
return | string[] |
public getCurrentModule ( ) : string | ||
return | string | name of the current module |
public includePlugin ( string $name, string $type, string $suffix, string $classname ) : boolean | ||
$name | string | the name of the plugin |
$type | string | the type of the plugin |
$suffix | string | the suffix of the filename |
$classname | string | the name of the class to instancy |
return | boolean | true if the plugin exists |
public loadPlugin ( string $name, string $type, string $suffix, string $classname, mixed $constructArg = null ) : null | object | ||
$name | string | the name of the plugin |
$type | string | the type of the plugin |
$suffix | string | the suffix of the filename |
$classname | string | the name of the class to instancy |
$constructArg | mixed | the single argument for the constructor of the class. null = no argument. |
return | null | object | null if the plugin doesn't exists |
public popCurrentModule ( ) : string | ||
return | string | the obsolet module name |
public pushCurrentModule ( string $module ) | ||
$module | string | the module name |
public setPaths ( $appPath, $wwwPath = null, $varPath = null, $logPath = null, $configPath = null, $scriptPath = null ) |
public $config |
public Router,Jelix\Routing $router | ||
return | Jelix\Routing\Router |