init.php
Initialize all defines and includes necessary files.
Tags
Interfaces, Classes and Traits
Table of Contents
- BYTECODE_CACHE_EXISTS = \function_exists('opcache_compile_file') || \function_exists('apc_cache_info') || \function_exists('eaccelerator_info') || \function_exists('xcache_info')
- JELIX_LIB_CORE_PATH = \JELIX_LIB_PATH . 'core/'
- JELIX_LIB_PATH = __DIR__ . '/'
- JELIX_LIB_UTILS_PATH = \JELIX_LIB_PATH . 'utils/'
- JELIX_NAMESPACE_BASE = 'http://jelix.org/ns/'
- JELIX_VERSION = '1.8.13'
- Initialize all defines and includes necessary files.
- LIB_PATH = \dirname(\JELIX_LIB_PATH) . '/'
- jelix_autoload() : mixed
- function used by php to try to load an unknown class.
- checkAppOpened() : mixed
- check if the application is opened. If not, it displays the yourapp/install/closed.html file with a http error (or lib/jelix/installer/closed.html), and exit.
- checkAppNotInstalled() : mixed
- check if the application is not installed. If the app is installed, an error message appears and the scripts ends.
- isAppInstalled() : mixed
Constants
BYTECODE_CACHE_EXISTS
public
mixed
BYTECODE_CACHE_EXISTS
= \function_exists('opcache_compile_file') || \function_exists('apc_cache_info') || \function_exists('eaccelerator_info') || \function_exists('xcache_info')
Tags
JELIX_LIB_CORE_PATH
public
mixed
JELIX_LIB_CORE_PATH
= \JELIX_LIB_PATH . 'core/'
Tags
JELIX_LIB_PATH
public
mixed
JELIX_LIB_PATH
= __DIR__ . '/'
Tags
JELIX_LIB_UTILS_PATH
public
mixed
JELIX_LIB_UTILS_PATH
= \JELIX_LIB_PATH . 'utils/'
Tags
JELIX_NAMESPACE_BASE
public
mixed
JELIX_NAMESPACE_BASE
= 'http://jelix.org/ns/'
Tags
JELIX_VERSION
Initialize all defines and includes necessary files.
public
mixed
JELIX_VERSION
= '1.8.13'
Tags
LIB_PATH
public
mixed
LIB_PATH
= \dirname(\JELIX_LIB_PATH) . '/'
Tags
Functions
jelix_autoload()
function used by php to try to load an unknown class.
jelix_autoload(mixed $class) : mixed
Parameters
- $class : mixed
Tags
Return values
mixed —checkAppOpened()
check if the application is opened. If not, it displays the yourapp/install/closed.html file with a http error (or lib/jelix/installer/closed.html), and exit.
checkAppOpened() : mixed
This function should be called in all entry point, before the creation of the coordinator.
Tags
Return values
mixed —checkAppNotInstalled()
check if the application is not installed. If the app is installed, an error message appears and the scripts ends.
checkAppNotInstalled() : mixed
It should be called only by some scripts like an installation wizard, not by an entry point.
Tags
Return values
mixed —isAppInstalled()
isAppInstalled() : mixed