Beispiel #1
0
 function storeEventData($event, $version)
 {
     $eventData = eZApprove2Event::fetch($event->attribute('id'), 1);
     switch ($version) {
         case 0:
             $eventData->publish();
             $eventData->removeDraft();
             break;
         case 1:
             $eventData->store();
             break;
     }
     eZWorkflowEventType::storeEventData($event, $version);
 }
Beispiel #2
0
 function approve2Event()
 {
     #include_once( 'kernel/classes/ezworkflowprocess.php' );
     $workflowProcess = eZWorkflowProcess::fetch($this->attribute('workflowprocess_id'), false);
     $retVal = false;
     if (!$workflowProcess) {
         return $retVal;
     }
     #include_once( eZExtension::baseDirectory() . '/ezapprove2/eventtypes/event/ezxapprove2/ezxapprove2type.php' );
     $retVal = eZApprove2Event::fetch($workflowProcess['event_id']);
     return $retVal;
 }