KWeb  6.4
KWebSections Class Reference

Sekcje tworzone są na podstawie ustawienia sections/init w formacie: array( id => array(parametry) ) More...

Public Member Functions

 get ($id)
 Zwraca obiekt sekcji dla podanego ID.
 getCurrent ($object=true)
 getCurrentDesign ()
 register ($section)
 Rejestruje obiekt sekcji.
 setCurrent ($id)
 add ($id, $data)

Static Public Member Functions

static instance ($create=true)

Data Fields

 $list = array()

Static Public Attributes

static $inst = null

Protected Member Functions

 __construct ()

Detailed Description

Sekcje tworzone są na podstawie ustawienia sections/init w formacie: array( id => array(parametry) )

Parametry:

name header footer parent - sekcja nadrzędna config - inc z configiem do załadowania boxes - inc z configiem boxów do załadowania prefix - prefix używany w wyszukiwaniu szablonów.. Jeżeli kończy się na '/' używane jest PREFIX/WIDOK/INC, w przeciwnym razie WIDOK/PREFIXINC hidden - ukryta w wybieraku nosynch - nie używa synchronizacji

if (substr($prefixItem, -1) == '/') { $incPath = $prefixItem . $view . $sep . $prefix . $i; } else { $incPath = $view . $sep . $prefixItem . $prefix . $i; }


Constructor & Destructor Documentation

KWebSections::__construct ( ) [protected]

Member Function Documentation

KWebSections::add ( id,
data 
)
KWebSections::get ( id)

Zwraca obiekt sekcji dla podanego ID.

Returns:
KWebSection
KWebSections::getCurrent ( object = true)
Returns:
KWebSection
KWebSections::getCurrentDesign ( )
static KWebSections::instance ( create = true) [static]
Returns:
KWebSections
KWebSections::register ( section)

Rejestruje obiekt sekcji.

KWebSections::setCurrent ( id)

Field Documentation

KWebSections::$inst = null [static]
KWebSections::$list = array()

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