Public Member Functions |
| __construct ($id, $object, $adapter=null) |
| buildStructureMenu (Menu_Item $menu, $which, array $options=array()) |
| Builds menus for this structure.
|
| buildStructureMenu_editActions (Menu_Item $menu, $action, array $options) |
| handleStructureAction ($action, $data, $confirmed, array $options=array()) |
| Handles actions on this structure.
|
| handleObjectAction ($object, $action, $data, $confirmed, array $options=array()) |
| Handles actions on a single object.
|
| handleObjectAction_remove (KWebObject $object, array $data, $confirmed, array $options) |
| handleObjectAction_publish (KWebObject $object, array $data, $confirmed, array $options) |
| handleObjectAction_pending (KWebObject $object, array $data, $confirmed, array $options) |
| handleObjectAction_move (KWebObject $object, array $data, $confirmed, array $options) |
| handleObjectAction_copy (KWebObject $object, array $data, $confirmed, array $options) |
| handleStructureAction_add (array $data, $confirmed, array $options) |
Static Public Member Functions |
static | onEventObjectStructures (KWebEvent $event) |
Constructor & Destructor Documentation
KWebStructure_Comment::__construct |
( |
$ |
id, |
|
|
$ |
object, |
|
|
$ |
adapter = null |
|
) |
| |
Member Function Documentation
KWebStructure_Comment::buildStructureMenu |
( |
Menu_Item $ |
menu, |
|
|
$ |
which, |
|
|
array $ |
options = array() |
|
) |
| |
Builds menus for this structure.
- Parameters:
-
$menu | Menu_Item to add into. |
$which | There are several menus the structure can plug into, see KWebStructure::MENU_* For MENU_STRUCTURES it's this structure's own menu item, for the rest, they're global menus. |
- Returns:
- Menu_Item Returns $menu that was passed, or entirely new object to replace it.
Implements KWebStructure_Interface.
KWebStructure_Comment::buildStructureMenu_editActions |
( |
Menu_Item $ |
menu, |
|
|
$ |
action, |
|
|
array $ |
options |
|
) |
| |
KWebStructure_Comment::handleObjectAction |
( |
$ |
object, |
|
|
$ |
action, |
|
|
$ |
data, |
|
|
$ |
confirmed, |
|
|
array $ |
options = array() |
|
) |
| |
Handles actions on a single object.
Typically called during processing handleStructureAction, and not by itself
- Parameters:
-
$action | - action id |
$data | - array with action data. Action dependent. See KWebStructure::DATA_* |
$confirmed | - if FALSE, the action should return array(KWebStructure::RESULT_CONFIRM => Menu_Item()) with items to confirm. if TRUE, the actions should be handled. |
$options | - general options for action handling and/or specific action (see KWebStructure::OPT_*) |
Reimplemented from KWebStructure.
KWebStructure_Comment::handleObjectAction_copy |
( |
KWebObject $ |
object, |
|
|
array $ |
data, |
|
|
$ |
confirmed, |
|
|
array $ |
options |
|
) |
| |
KWebStructure_Comment::handleObjectAction_move |
( |
KWebObject $ |
object, |
|
|
array $ |
data, |
|
|
$ |
confirmed, |
|
|
array $ |
options |
|
) |
| |
KWebStructure_Comment::handleObjectAction_pending |
( |
KWebObject $ |
object, |
|
|
array $ |
data, |
|
|
$ |
confirmed, |
|
|
array $ |
options |
|
) |
| |
KWebStructure_Comment::handleObjectAction_publish |
( |
KWebObject $ |
object, |
|
|
array $ |
data, |
|
|
$ |
confirmed, |
|
|
array $ |
options |
|
) |
| |
KWebStructure_Comment::handleObjectAction_remove |
( |
KWebObject $ |
object, |
|
|
array $ |
data, |
|
|
$ |
confirmed, |
|
|
array $ |
options |
|
) |
| |
KWebStructure_Comment::handleStructureAction |
( |
$ |
action, |
|
|
$ |
data, |
|
|
$ |
confirmed, |
|
|
array $ |
options = array() |
|
) |
| |
Handles actions on this structure.
- Parameters:
-
$action | - action id |
$data | - array with action data, like list of id's, etc. Action dependent. See KWebStructure::DATA_* |
$confirmed | - if false, the action should return array(KWebStructure::RESULT_CONFIRM => Menu_Item()) with items to confirm. if true, the actions should be handled. |
$options | - general options for action handling and/or specific action (see KWebStructure::OPT_*) |
Reimplemented from KWebStructure.
KWebStructure_Comment::handleStructureAction_add |
( |
array $ |
data, |
|
|
$ |
confirmed, |
|
|
array $ |
options |
|
) |
| |
static KWebStructure_Comment::onEventObjectStructures |
( |
KWebEvent $ |
event | ) |
[static] |
The documentation for this class was generated from the following file: