当前位置: 首页>>代码示例>>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;未经允许,请勿转载。