本文整理汇总了PHP中eZWorkflow::definition方法的典型用法代码示例。如果您正苦于以下问题:PHP eZWorkflow::definition方法的具体用法?PHP eZWorkflow::definition怎么用?PHP eZWorkflow::definition使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eZWorkflow
的用法示例。
在下文中一共展示了eZWorkflow::definition方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
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" );
// set temporary version to edited workflow
$workflow->setVersion( 1, $event_list );
// Set new modification date
$date_time = time();
$workflow->setAttribute( "modified", $date_time );
$user = eZUser::currentUser();
$user_id = $user->attribute( "contentobject_id" );
$workflow->setAttribute( "modifier_id", $user_id );
示例2: foreach
}
$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");
}
// set temporary version to edited workflow
$workflow->setVersion(1, $event_list);
// Set new modification date
$date_time = time();
$workflow->setAttribute("modified", $date_time);
$user = eZUser::currentUser();
$user_id = $user->attribute("contentobject_id");
$workflow->setAttribute("modifier_id", $user_id);
/********** Custom Action Code Start ***************/
$customAction = false;
$customActionAttributeID = null;
// Check for custom actions