/init.php

Description

Initialize all defines and includes necessary files

  • author: Laurent Jouanneau
  • copyright: 2007 Julien Issler
  • copyright: 2005-2012 Laurent Jouanneau
  • link: http://www.jelix.org
  • contributor: Loic Mathaud, Julien Issler
  • licence: GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html
  • filesource: Source Code for this file
Includes
require (JELIX_LIB_CORE_PATH.'selector/jSelectorActFast.class.php') (line 49)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorLoc.class.php') (line 56)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorModule.class.php') (line 48)
require (jelix_api.php) (line 38)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorTpl.class.php') (line 57)
require (jICoordPlugin.iface.php) (line 39)
require (jISelector.iface.php) (line 40)
require (jIUrlEngine.iface.php) (line 41)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorDao.class.php') (line 52)
require (jBasicErrorHandler.class.php) (line 42)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorDaoRecord.class.php') (line 53)
require (jApp.class.php) (line 37)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorClass.class.php') (line 51)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorAct.class.php') (line 50)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorSimpleFile.class.php') (line 59)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorIface.class.php') (line 55)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorForm.class.php') (line 54)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorZone.class.php') (line 58)
require (jBundle.class.php) (line 68)
require (jResponse.class.php) (line 67)
require (jUrlAction.class.php) (line 62)
require (jSession.class.php) (line 72)
require (jUrl.class.php) (line 63)
require (jCoordinator.class.php) (line 64)
require (jController.class.php) (line 65)
require (jRequest.class.php) (line 66)
require (jUrlBase.class.php) (line 61)
require (jIncluder.class.php) (line 71)
require (jConfigAutoloader.class.php) (line 45)
require (jSelector.class.php) (line 46)
require (jServer.class.php) (line 47)
require (jConfig.class.php) (line 44)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorFile.lib.php') (line 60)
require (jLog.class.php) (line 70)
require (jLocale.class.php) (line 69)
require (jException.class.php) (line 43)
Constants
BYTECODE_CACHE_EXISTS = function_exists('opcache_compile_file')||function_exists('apc_cache_info')||function_exists('eaccelerator_info')||function_exists('xcache_info') (line 33)
JELIX_LIB_CORE_PATH = JELIX_LIB_PATH.'core/' (line 28)
JELIX_LIB_PATH = __DIR__.'/' (line 27)
JELIX_LIB_UTILS_PATH = JELIX_LIB_PATH.'utils/' (line 29)
JELIX_NAMESPACE_BASE = 'http://jelix.org/ns/' (line 25)

base of namespace path used in xml files of jelix

  • name: JELIX_NAMESPACE_BASE
JELIX_VERSION = '1.5.8' (line 19)

Version number of Jelix

  • name: JELIX_VERSION
LIB_PATH = dirname(JELIX_LIB_PATH).'/' (line 30)
Variables
array $gLibPath (line 80)

contains path for __autoload function

  • see: __autoload()
  • name: $gLibPath
Functions
checkAppNotInstalled (line 171)

check if the application is not installed. If the app is installed, an error message appears and the scripts ends.

It should be called only by some scripts like an installation wizard, not by an entry point.

  • todo: migrate the code to jAppManager or jApp
void checkAppNotInstalled ()
checkAppOpened (line 136)

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.

This function should be called in all entry point, before the creation of the coordinator.

  • see: jAppManager
  • todo: migrate the code to jAppManager or jApp
void checkAppOpened ()
isAppInstalled (line 188)
  • todo: migrate the code to jAppManager or jApp
void isAppInstalled ()
jelix_autoload (line 89)

function used by php to try to load an unknown class

void jelix_autoload ( $class)
  • $class

Documentation generated on Wed, 04 Jan 2017 22:51:55 +0100 by phpDocumentor 1.4.3