KWeb  6.4
KVar Class Reference

This singleton is used to store/retrieve variables, that are valid for current request. More...

Inheritance diagram for KVar:
KVarBase

Public Member Functions

 __destruct ()

Static Public Member Functions

static instance ($create=true)

Static Public Attributes

static $inst = null

Protected Member Functions

 __construct ()

Detailed Description

This singleton is used to store/retrieve variables, that are valid for current request.

By using KVar you can pass special variables to templates, store specific information that will be read in other parts of the system and so on.

Call the methods statically (KVar::$inst->get()). KVar doesn't have to be initialized before using.

For retrieving settings use KSetting.


Constructor & Destructor Documentation

KVar::__construct ( ) [protected]

Reimplemented from KVarBase.

KVar::__destruct ( )

Reimplemented from KVarBase.


Member Function Documentation

static KVar::instance ( create = true) [static]
Returns:
KVar

Field Documentation

KVar::$inst = null [static]

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