Kajona\System\System\Carrier

Heart of the system - granting access to all needed objects e.g. the database or the session-object

Synopsis

class Carrier {
  • // constants
  • const INT_CACHE_TYPE_DBQUERIES = 2;
  • const INT_CACHE_TYPE_DBSTATEMENTS = 4;
  • const INT_CACHE_TYPE_DBTABLES = 256;
  • const INT_CACHE_TYPE_ORMCACHE = 8;
  • const INT_CACHE_TYPE_OBJECTFACTORY = 16;
  • const INT_CACHE_TYPE_MODULES = 32;
  • const INT_CACHE_TYPE_CLASSLOADER = 64;
  • const INT_CACHE_TYPE_APC = 128;
  • const INT_CACHE_TYPE_CHANGELOG = 512;
}

Constants

Name Value
INT_CACHE_TYPE_DBQUERIES 2
INT_CACHE_TYPE_DBSTATEMENTS 4
INT_CACHE_TYPE_DBTABLES 256
INT_CACHE_TYPE_ORMCACHE 8
INT_CACHE_TYPE_OBJECTFACTORY 16
INT_CACHE_TYPE_MODULES 32
INT_CACHE_TYPE_CLASSLOADER 64
INT_CACHE_TYPE_APC 128
INT_CACHE_TYPE_CHANGELOG 512

Members

private

  • $arrParams — array
    Internal array of all params passed globally to the script
  • $objCarrierKajona\System\System\Carrier
    Current instance
  • $objContainer

Methods

private

  • __construct() — Constructor for Carrier, doing nothing important, but being private ;), so use getInstance() instead
  • initParamsArray() — Internal helper, loads and merges all params passed with the current request.

public

  • boot() — Creates a new DI container and register the system services
  • flushCache() — A general helper to flush the systems various caches.
  • getAllParams() — Returns all params passed to the system, including $_GET, $_POST; $_FILES This array may be modified, changes made are available during the whole request!
  • getContainer()
  • getInstance() — Method to get an instance of Carrier though the constructor is private
  • getObjConfig() — Managing access to the config object. Use ONLY this method to get an instance!
  • getObjDB() — Managing access to the database object. Use ONLY this method to get an instance!
  • getObjLang() — Managing access to the text object. Use ONLY this method to get an instance!
  • getObjRights() — Managing access to the rights object. Use ONLY this method to get an instance!
  • getObjSession() — Managing access to the session object. Use ONLY this method to get an instance!
  • getObjTemplate() — Managing access to the template object. Use ONLY this method to get an instance!
  • getObjToolkit() — Managing access to the toolkit object. Use ONLY this method to get an instance!
  • getParam() — Returns the value of a param sent with the current request.
  • issetParam() — Returns the value of a param sent with the current request.
  • setParam() — Writes a param to the current set of params sent with the current requests.