|
eZ Publish
[4.2]
|
Handles approval communication using the collaboration system. More...
Inheritance diagram for eZApproveCollaborationHandler:
Collaboration diagram for eZApproveCollaborationHandler:Public Member Functions | |
| content ($collaborationItem) | |
| eZApproveCollaborationHandler () | |
| handleCustomAction ($module, $collaborationItem) | |
| messageCount ($collaborationItem) | |
| notificationParticipantTemplate ($participantRole) | |
| readItem ($collaborationItem, $viewMode=false) | |
| title ($collaborationItem) | |
| unreadMessageCount ($collaborationItem) | |
Static Public Member Functions | |
| static | activateApproval ($approvalID) |
| static | checkApproval ($approvalID) |
| static | contentObjectVersion ($collaborationItem) |
| static | createApproval ($contentObjectID, $contentObjectVersion, $authorID, $approverIDArray) |
Public Attributes | |
| const | MESSAGE_TYPE_APPROVE = 1 |
| Approval message type. | |
| const | STATUS_ACCEPTED = 1 |
| The contentobject was approved and will be published. | |
| const | STATUS_DEFERRED = 3 |
| The contentobject was deferred and will be a draft again for reediting. | |
| const | STATUS_DENIED = 2 |
| The contentobject was denied and will be archived. | |
| const | STATUS_WAITING = 0 |
| Default status, no approval decision has been made. | |
Handles approval communication using the collaboration system.
The handler uses the fields data_int1, data_int2 and data_int3 to store information on the contentobject and the approval status.
Definition at line 49 of file ezapprovecollaborationhandler.php.
| static eZApproveCollaborationHandler::activateApproval | ( | $ | approvalID | ) | [static] |
Definition at line 161 of file ezapprovecollaborationhandler.php.
Referenced by eZApproveType\execute().
| static eZApproveCollaborationHandler::checkApproval | ( | $ | approvalID | ) | [static] |
Definition at line 147 of file ezapprovecollaborationhandler.php.
Referenced by eZApproveType\checkApproveCollaboration().
| eZApproveCollaborationHandler::content | ( | $ | collaborationItem | ) |
Reimplemented from eZCollaborationItemHandler.
Definition at line 83 of file ezapprovecollaborationhandler.php.
| static eZApproveCollaborationHandler::contentObjectVersion | ( | $ | collaborationItem | ) | [static] |
Definition at line 107 of file ezapprovecollaborationhandler.php.
Referenced by eZApproveType\checkApproveCollaboration(), and handleCustomAction().
| static eZApproveCollaborationHandler::createApproval | ( | $ | contentObjectID, |
| $ | contentObjectVersion, | ||
| $ | authorID, | ||
| $ | approverIDArray | ||
| ) | [static] |
Creates a new approval collaboration item which will approve the content object $contentObjectID with version $contentObjectVersion. The item will be added to the author $authorID and the approver array $approverIDArray.
Definition at line 187 of file ezapprovecollaborationhandler.php.
Referenced by eZApproveType\createApproveCollaboration().
| eZApproveCollaborationHandler::eZApproveCollaborationHandler | ( | ) |
Initializes the handler
Definition at line 69 of file ezapprovecollaborationhandler.php.
| eZApproveCollaborationHandler::handleCustomAction | ( | $ | module, |
| $ | collaborationItem | ||
| ) |
Adds a new comment, approves the item or denies the item.
Reimplemented from eZCollaborationItemHandler.
Definition at line 223 of file ezapprovecollaborationhandler.php.
| eZApproveCollaborationHandler::messageCount | ( | $ | collaborationItem | ) |
Reimplemented from eZCollaborationItemHandler.
Definition at line 125 of file ezapprovecollaborationhandler.php.
| eZApproveCollaborationHandler::notificationParticipantTemplate | ( | $ | participantRole | ) |
Reimplemented from eZCollaborationItemHandler.
Definition at line 90 of file ezapprovecollaborationhandler.php.
| eZApproveCollaborationHandler::readItem | ( | $ | collaborationItem, |
| $ | viewMode = false |
||
| ) |
Updates the last_read for the participant link.
Reimplemented from eZCollaborationItemHandler.
Definition at line 117 of file ezapprovecollaborationhandler.php.
| eZApproveCollaborationHandler::title | ( | $ | collaborationItem | ) |
Reimplemented from eZCollaborationItemHandler.
Definition at line 78 of file ezapprovecollaborationhandler.php.
| eZApproveCollaborationHandler::unreadMessageCount | ( | $ | collaborationItem | ) |
Reimplemented from eZCollaborationItemHandler.
Definition at line 133 of file ezapprovecollaborationhandler.php.
Approval message type.
Definition at line 52 of file ezapprovecollaborationhandler.php.
The contentobject was approved and will be published.
Definition at line 58 of file ezapprovecollaborationhandler.php.
Referenced by eZApproveType\checkApproveCollaboration(), and handleCustomAction().
The contentobject was deferred and will be a draft again for reediting.
Definition at line 64 of file ezapprovecollaborationhandler.php.
Referenced by eZApproveType\checkApproveCollaboration().
The contentobject was denied and will be archived.
Definition at line 61 of file ezapprovecollaborationhandler.php.
Referenced by eZApproveType\checkApproveCollaboration(), and handleCustomAction().
Default status, no approval decision has been made.
Definition at line 55 of file ezapprovecollaborationhandler.php.
Referenced by eZApproveType\checkApproveCollaboration().