KWeb
6.4
|
Public Member Functions | |
getInfo ($lang=false) | |
| |
setInfo ($info, $lang=false) | |
buildObjectForm ($id, array $options=array()) | |
Builds the user input form for this object. | |
getAttributeTable ($full=true) | |
onObjectSwitchTypeCopy ($from, $direction) | |
Wywoływane, aby można było skopiować atrybuty przy zmianie typów. | |
Static Public Member Functions | |
static | getClassAttributes (array $options=array()) |
Returns attribute table for this class. |
KWebItemInfo::buildObjectForm | ( | $ | id, |
array $ | options = array() |
||
) |
Builds the user input form for this object.
Options specify the intent of the form (full edit, quick edit, quick add, and so on). Once build, the form should be attached to this object with setObjectForm().
By default, the form will be built automatically, using KWebAttribute form intents ($group and $forms)
Reimplemented from KWebItem.
Reimplemented in KWebItem_NewsList, KWebItem_Redirect, KWebItem_Inc, KWebItem_Art, and KWebItem_Download.
KWebItemInfo::getAttributeTable | ( | $ | full = true | ) |
static KWebItemInfo::getClassAttributes | ( | array $ | options = array() | ) | [static] |
Returns attribute table for this class.
Once created, the table should be stored in a static value. The table should be read only.
Options contain 'genre', 'type' and 'object' for which this attribute table is needed. However, the best practice is to always return always the same, static attribute table.
Overriding classes should be responsible to clone the table and it's attributes and modify them if needed.
Reimplemented from KWebItem.
Reimplemented in KWebItem_NewsList, KWebItem_Inc, KWebItem_Art, KWebItem_Redirect, KWebItem_Dir, and KWebItem_Download.
KWebItemInfo::getInfo | ( | $ | lang = false | ) |
Reimplemented from KWebObject.
KWebItemInfo::onObjectSwitchTypeCopy | ( | $ | from, |
$ | direction | ||
) |
KWebItemInfo::setInfo | ( | $ | info, |
$ | lang = false |
||
) |