MkFramework
 All Data Structures Functions
Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Protected Attributes
_root Class Reference

Public Member Functions

 __construct ()
 
 run ()
 

Static Public Member Functions

static addConf ($sConfig, $sCat=null)
 
static loadConf ()
 
static arrayMergeRecursive ($tArray, $tNewArray)
 
static loadLangueDate ()
 
static nullbyteprotect ($string)
 
static startSession ()
 
static showException (Exception $e)
 
static autoload ($sClass)
 
static setParam ($sVar, $uValue)
 
static getParam ($sVar, $uElse=null)
 
static setParamNav ($sNav)
 
static getParamNav ()
 
static getModule ()
 
static getAction ()
 
static addRequest ($tRequest)
 
static loadRequest ()
 
static resetRequest ()
 
static getRequest ()
 
static getCache ()
 
static getCacheVar ()
 
static getAuth ()
 
static getACL ()
 
static getUrlRewriting ()
 
static getLog ()
 
static setConfigVar ($sCatAndVar, $uValue)
 
static getConfigVar ($sCatAndVar, $uDefaut=null)
 
static setGlobalVar ($sVar, $sValue)
 
static getGlobalVar ($sVar, $defaut=null)
 
static setInstanceOf ($sObj, $oObj)
 
static getObject ($sObj, $defaut=null)
 
static redirect ($uNav, $tParam=null)
 
static getLinkWithCurrent ($tParam=null, $bAmp=true)
 
static getLink ($uNav, $tParam=null, $bAmp=true)
 
static getLinkString ($sNav, $tParam=null, $bAmp=true)
 
static erreurLog ($sText, $e=null)
 

Static Public Attributes

static $tAutoload
 
static $tConfigVar
 

Static Protected Attributes

static $_oRequest
 
static $_oCache
 
static $_oCacheVar
 
static $_oAuth
 
static $_oUrlrewriting
 
static $_oLog
 
static $_tConfigFilename
 
static $_tRequestTab
 
static $_tGlobalVar
 
static $_tObject
 
static $_oACL
 
static $_bSessionStarted =0
 

Detailed Description

_root classe moteur du framework (charge les fichiers de config / parametres)

Author
Mika http://mkf.mkdevs.com/

Definition at line 23 of file class_root.php.

Constructor & Destructor Documentation

__construct ( )

constructeur public

Definition at line 48 of file class_root.php.

Member Function Documentation

static addConf (   $sConfig,
  $sCat = null 
)
static

ajoute un fichier de config ini public static

Parameters
string$sConfigadresse du fichier de config a charger
string$sCatnom de la section a charger (si on ne veut charger qu'une section du fichier ini)

Definition at line 77 of file class_root.php.

static addRequest (   $tRequest)
static

defini le tableau d'environnement a utiliser comme _request public

Parameters
array$tRequest

Definition at line 512 of file class_root.php.

static autoload (   $sClass)
static

appele par le autoload quand il trouve pas une classe (chargement dynamique) public static

Parameters
string$sClassnom de la classe appellee

Definition at line 422 of file class_root.php.

static getACL ( )
static

retourne l'objet de gestion de droits auth.acl public

Returns
objet de gestion de droits auth.acl

Definition at line 581 of file class_root.php.

static getAction ( )
static

retourne l'action public

Returns
string action

Definition at line 502 of file class_root.php.

static getAuth ( )
static

retourne l'objet d'authentification auth.class public

Returns
d'authentification auth.class

Definition at line 568 of file class_root.php.

static getCache ( )
static

retourne l'objet _cache public

Returns
_cache

Definition at line 550 of file class_root.php.

static getCacheVar ( )
static

retourne l'objet _cacheVar public

Returns
_cacheVar

Definition at line 559 of file class_root.php.

static getConfigVar (   $sCatAndVar,
  $uDefaut = null 
)
static

retourne la variable $sVar "global a l'application" si elle existe, sinon $defaut public static

Returns
undefined
Parameters
string$sVarvariable a definir
undefined$uDefautretour en cas d'echec

Definition at line 654 of file class_root.php.

Here is the caller graph for this function:

static getGlobalVar (   $sVar,
  $defaut = null 
)
static

retourne la variable $sVar "global a l'application" si elle existe, sinon $defaut public static

Returns
undefined
Parameters
string$sVarvariable a definir
string$defautretour en cas d'echec

Definition at line 691 of file class_root.php.

static getLink (   $uNav,
  $tParam = null,
  $bAmp = true 
)
static

retourne le lien framework public static

Parameters
stringou array $uNav (dans le cas de l'array, l'indice 0 c'est le couple controller/action)
array$tParamles parametres de l'url
bool$bAmputilise ou non & dans les liens (passer a false dans le cas d'un header location)

Definition at line 756 of file class_root.php.

Here is the caller graph for this function:

static getLinkString (   $sNav,
  $tParam = null,
  $bAmp = true 
)
static

retourne le lien framework public static

Parameters
string$sLink
bool$bAmputilise ou non & dans les liens (passer a false dans le cas d'un header location)

Definition at line 778 of file class_root.php.

Here is the caller graph for this function:

static getLinkWithCurrent (   $tParam = null,
  $bAmp = true 
)
static

retourne le lien framework en reprenant les parametres actuels public static

Parameters
array$tParamles parametres supplementaires de l'url
bool$bAmputilise ou non & dans les liens (passer a false dans le cas d'un header location)

Definition at line 739 of file class_root.php.

Here is the call graph for this function:

static getLog ( )
static

retourne l'objet log.class public

Returns
_cache

Definition at line 610 of file class_root.php.

Here is the caller graph for this function:

static getModule ( )
static

retourne le module public

Returns
string module

Definition at line 493 of file class_root.php.

static getObject (   $sObj,
  $defaut = null 
)
static

retourne un objet "global a l'application" si elle existe, sinon $defaut public static

Returns
undefined
Parameters
string$sVarvariable a definir
string$defautretour en cas d'echec

Definition at line 714 of file class_root.php.

static getParam (   $sVar,
  $uElse = null 
)
static

retourne une variable de requete GET,POST public

Returns
undefined
Parameters
string$sEnv
string$sVar
undefined$uElse

Definition at line 465 of file class_root.php.

static getParamNav ( )
static

retourne la valeur de navigation public

Returns
string navigation (module::action)

Definition at line 484 of file class_root.php.

static getRequest ( )
static

retourne l'objet _request public

Returns
_request

Definition at line 541 of file class_root.php.

Here is the caller graph for this function:

static getUrlRewriting ( )
static

retourne l'objet d'urlrewriting urlrewriting.class public

Returns
d'urlrewriting urlrewriting.class

Definition at line 595 of file class_root.php.

static loadConf ( )
static

charge la configuration de l'application public static

Definition at line 84 of file class_root.php.

static loadLangueDate ( )
static

charge le fichier de langue public static

Definition at line 139 of file class_root.php.

Here is the caller graph for this function:

static redirect (   $uNav,
  $tParam = null 
)
static

redirige vers le couple module::action $sNav public static

Parameters
stringou array $uNav (dans le cas de l'array, l'indice 0 c'est le couple controller/action)
array$tParamtableau de parametres de l'url

Definition at line 727 of file class_root.php.

Here is the caller graph for this function:

static resetRequest ( )
static

efface l'objet _request public

Definition at line 531 of file class_root.php.

run ( )

lance le framework (dispatch...) public

Definition at line 180 of file class_root.php.

Here is the call graph for this function:

static setConfigVar (   $sCatAndVar,
  $uValue 
)
static

defini une variable "global a l'application" public static

Parameters
string$sVarvariable a definir
string$sValuevaleur

Definition at line 637 of file class_root.php.

Here is the caller graph for this function:

static setGlobalVar (   $sVar,
  $sValue 
)
static

defini une variable "global a l'application" public static

Parameters
string$sVarvariable a definir
string$sValuevaleur

Definition at line 681 of file class_root.php.

static setInstanceOf (   $sObj,
  $oObj 
)
static

defini un objet "global a l'application" public static

Parameters
string$sVarvariable a definir
string$sValuevaleur

Definition at line 704 of file class_root.php.

static setParam (   $sVar,
  $uValue 
)
static

force une variable de requete GET,POST public

Parameters
string$sEnv
string$sVar
undefined$uValue

Definition at line 453 of file class_root.php.

Here is the caller graph for this function:

static setParamNav (   $sNav)
static

force une variable de navigation public

Parameters
string$sNav

Definition at line 475 of file class_root.php.


The documentation for this class was generated from the following file: