/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/jSelectorZone.class.php') (line 61)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorFile.lib.php') (line 63)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorSimpleFile.class.php') (line 62)
require (jIUrlEngine.iface.php) (line 44)
require (jUrlBase.class.php) (line 64)
require (jBasicErrorHandler.class.php) (line 45)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorActFast.class.php') (line 53)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorAct.class.php') (line 54)
require (jApp.class.php) (line 41)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorForm.class.php') (line 57)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorIface.class.php') (line 58)
require (jISelector.iface.php) (line 43)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorDao.class.php') (line 56)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorClass.class.php') (line 55)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorTpl.class.php') (line 60)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorLoc.class.php') (line 59)
require (jUrlAction.class.php) (line 65)
require (jUrl.class.php) (line 66)
require (jLog.class.php) (line 73)
require (jSession.class.php) (line 75)
require (jIncluder.class.php) (line 74)
require (jBundle.class.php) (line 71)
require (jController.class.php) (line 68)
require (jResponse.class.php) (line 70)
require (jRequest.class.php) (line 69)
require (jCoordinator.class.php) (line 67)
require (jLocale.class.php) (line 72)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorModule.class.php') (line 52)
require (jContext.class.php) (line 47)
require (jException.class.php) (line 46)
require (jServer.class.php) (line 51)
require (jSelector.class.php) (line 50)
require (jConfigAutoloader.class.php) (line 49)
require (jConfig.class.php) (line 48)
require (jICoordPlugin.iface.php) (line 42)
Constants
BYTECODE_CACHE_EXISTS = function_exists('apc_cache_info')||function_exists('eaccelerator_info')||function_exists('xcache_info') (line 33)
E_DEPRECATED = 8192 (line 36)
E_USER_DEPRECATED = 16384 (line 38)
JELIX_LIB_CORE_PATH = JELIX_LIB_PATH.'core/' (line 29)
JELIX_LIB_PATH = dirname(__FILE__).'/' (line 28)
JELIX_LIB_UTILS_PATH = JELIX_LIB_PATH.'utils/' (line 30)
JELIX_NAMESPACE_BASE = 'http://jelix.org/ns/' (line 26)

base of namespace path used in xml files of jelix

  • name: JELIX_NAMESPACE_BASE
JELIX_VERSION = '1.4.8' (line 20)

Version number of Jelix

  • name: JELIX_VERSION
LIB_PATH = dirname(JELIX_LIB_PATH).'/' (line 31)
Variables
stdobject $gJConfig (line 91)

Object that contains all configuration values

  • deprecated: use jApp::config() instead
  • name: $gJConfig
jCoordinator $gJCoord (line 83)

The main object of Jelix which process all things

  • deprecated: use jApp::coord() instead
  • name: $gJCoord
array $gLibPath (line 99)

contains path for __autoload function

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

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 155)

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 207)
  • todo: migrate the code to jAppManager or jApp
void isAppInstalled ()
jelix_autoload (line 108)

function used by php to try to load an unknown class

void jelix_autoload ( $class)
  • $class

Documentation generated on Mon, 26 Oct 2015 21:51:26 +0100 by phpDocumentor 1.4.3