KWeb  6.4
KWebObjects Class Reference

Klasa przechowuje informacje o różnych typach obiektów używanych przez KWeb. More...

Public Member Functions

 install ($genre, $type, $data)
 override ($genre, $type, $data)
 getTypeInfo ($genre, $type=0)
 getTypes ($genre)
 Returns an array of supported types for this genre.
 callEvent ($genres, $event, $params=false)
 Wywołuje podaną jako $event funkcję na wszystkich typach z podanych (lub wszystkich) rodzajów.
 getEventCall ()
 isEventCall ($genre, $type=false, $event=false)
 getName ($genre, $type=0)
 getClass ($genre, $type=0)
 getClassAttributes ($genre, $type=0)
 Returns class attributes for specified genre/type.
 loadClass ($genre, $type=0)
 Ensures the class is loaded.
 loadAllClasses ()
 getIcon ($genre, $type=0, $default='')
 Returns the icon name for specified type.
 genreExists ($genre)
 typeExists ($genre, $type)
 gotParentClass ($class, $parent)
 isSubtype ($genre, $type, $parent)
 Sprawdza, czy typ zawiera w sobie podtyp.
 resolveUID ($uid, $defaultGenre=GENRE_ITEM)
 Resolves uid into genre and id list($genre, $id) = resolveUID($uid)
 buildUID ($genre, $id)
 buildObject ($genre, $id, $type, $properties=null, $storeInCache=false)

Static Public Member Functions

static instance ($create=true)

Data Fields

 $types = array()
 $event = array()

Static Public Attributes

static $inst = null

Protected Member Functions

 __construct ()

Detailed Description

Klasa przechowuje informacje o różnych typach obiektów używanych przez KWeb.


Constructor & Destructor Documentation

KWebObjects::__construct ( ) [protected]

Member Function Documentation

KWebObjects::buildObject ( genre,
id,
type,
properties = null,
storeInCache = false 
)
Returns:
KWebObject
KWebObjects::buildUID ( genre,
id 
)
KWebObjects::callEvent ( genres,
event,
params = false 
)

Wywołuje podaną jako $event funkcję na wszystkich typach z podanych (lub wszystkich) rodzajów.

Przy obsłudze eventów powinno się używać f-cji isEventCall dla sprawdzenia, czy wywołanie dotyczy faktycznie danej klasy!

KWebObjects::genreExists ( genre)
KWebObjects::getClass ( genre,
type = 0 
)
KWebObjects::getClassAttributes ( genre,
type = 0 
)

Returns class attributes for specified genre/type.

Returns:
KWebAttribute_Table_Class
KWebObjects::getEventCall ( )
KWebObjects::getIcon ( genre,
type = 0,
default = '' 
)

Returns the icon name for specified type.

You should use KWebTemplate::$inst->pathIco() to get the icon file

KWebObjects::getName ( genre,
type = 0 
)
KWebObjects::getTypeInfo ( genre,
type = 0 
)
KWebObjects::getTypes ( genre)

Returns an array of supported types for this genre.

KWebObjects::gotParentClass ( class,
parent 
)
KWebObjects::install ( genre,
type,
data 
)
static KWebObjects::instance ( create = true) [static]
Returns:
KWebObjects
KWebObjects::isEventCall ( genre,
type = false,
event = false 
)
KWebObjects::isSubtype ( genre,
type,
parent 
)

Sprawdza, czy typ zawiera w sobie podtyp.

Parameters:
$typeSprawdzany typ
$parentSzukany podtyp
KWebObjects::loadAllClasses ( )
KWebObjects::loadClass ( genre,
type = 0 
)

Ensures the class is loaded.

KWebObjects::override ( genre,
type,
data 
)
KWebObjects::resolveUID ( uid,
defaultGenre = GENRE_ITEM 
)

Resolves uid into genre and id list($genre, $id) = resolveUID($uid)

KWebObjects::typeExists ( genre,
type 
)

Field Documentation

KWebObjects::$event = array()
KWebObjects::$inst = null [static]
KWebObjects::$types = array()

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