當前位置: 首頁>>代碼示例>>PHP>>正文


PHP eZWorkflowEvent::definition方法代碼示例

本文整理匯總了PHP中eZWorkflowEvent::definition方法的典型用法代碼示例。如果您正苦於以下問題:PHP eZWorkflowEvent::definition方法的具體用法?PHP eZWorkflowEvent::definition怎麽用?PHP eZWorkflowEvent::definition使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在eZWorkflowEvent的用法示例。


在下文中一共展示了eZWorkflowEvent::definition方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: move

 function move($down, $params = null)
 {
     if (is_array($params)) {
         $pos = $params["placement"];
         $wid = $params["workflow_id"];
         $version = $params["version"];
     } else {
         $pos = $this->Placement;
         $wid = $this->WorkflowID;
         $version = $this->Version;
     }
     eZPersistentObject::reorderObject(eZWorkflowEvent::definition(), array("placement" => $pos), array("workflow_id" => $wid, "version" => $version), $down);
 }
開發者ID:netbliss,項目名稱:ezpublish,代碼行數:13,代碼來源:ezworkflowevent.php

示例2: foreach

    foreach( $event_list as $event )
    {
        $eventType = $event->eventType();
        if ( !$eventType instanceof eZWorkflowEventType )
        {
            eZDebug::writeError( "Couldn't load eventype '{$event->attribute( 'workflow_type_string' )}' for workflow. Is it activated ?" );
            continue;
        }

        $status = $eventType->fixupHTTPInput( $http, "WorkflowEvent", $event );
    }
}

$cur_type = 0;
// Apply HTTP POST variables
eZHTTPPersistence::fetch( "WorkflowEvent", eZWorkflowEvent::definition(),
                          $event_list, $http, true );
if ( $http->hasPostVariable( "DeleteButton" ) )
{
    if ( eZHTTPPersistence::splitSelected( "WorkflowEvent", $event_list, $http, "id", $keepers, $rejects ) )
    {
        $db = eZDB::instance();
        $db->begin();
        foreach ( $rejects as $reject )
        {
            $reject->remove();
        }
        $db->commit();
        $event_list = $keepers;
    }
}
開發者ID:sushilbshinde,項目名稱:ezpublish-study,代碼行數:31,代碼來源:edit.php

示例3: foreach

    }
}
// Fixup input
if ($requireFixup) {
    foreach ($event_list as $event) {
        $eventType = $event->eventType();
        if (!$eventType instanceof eZWorkflowEventType) {
            eZDebug::writeError("Couldn't load eventype '{$event->attribute('workflow_type_string')}' for workflow. Is it activated ?");
            continue;
        }
        $status = $eventType->fixupHTTPInput($http, "WorkflowEvent", $event);
    }
}
$cur_type = 0;
// Apply HTTP POST variables
eZHTTPPersistence::fetch("WorkflowEvent", eZWorkflowEvent::definition(), $event_list, $http, true);
if ($http->hasPostVariable("DeleteButton")) {
    if (eZHTTPPersistence::splitSelected("WorkflowEvent", $event_list, $http, "id", $keepers, $rejects)) {
        $db = eZDB::instance();
        $db->begin();
        foreach ($rejects as $reject) {
            $reject->remove();
        }
        $db->commit();
        $event_list = $keepers;
    }
}
eZHTTPPersistence::fetch("Workflow", eZWorkflow::definition(), $workflow, $http, false);
if ($http->hasPostVariable("WorkflowTypeString")) {
    $cur_type = $http->postVariable("WorkflowTypeString");
}
開發者ID:CG77,項目名稱:ezpublish-legacy,代碼行數:31,代碼來源:edit.php


注:本文中的eZWorkflowEvent::definition方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。