本文整理汇总了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);
}
示例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;
}
}
示例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");
}