本文整理汇总了PHP中eZWorkflowProcess::definition方法的典型用法代码示例。如果您正苦于以下问题:PHP eZWorkflowProcess::definition方法的具体用法?PHP eZWorkflowProcess::definition怎么用?PHP eZWorkflowProcess::definition使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eZWorkflowProcess
的用法示例。
在下文中一共展示了eZWorkflowProcess::definition方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
} else {
$conds['memento_key'] = array('!=', '');
}
$offset = $Params['Offset'];
if (!is_numeric($offset)) {
$offset = 0;
}
$limitList = array(1 => 10, 2 => 25, 3 => 50, 4 => 100);
$limit = 10;
$limitId = eZPreferences::value('admin_workflow_processlist_limit');
if ($limitId and isset($limitList[$limitId])) {
$limit = $limitList[$limitId];
}
$viewParameters = array('offset' => $offset);
$plist = eZWorkflowProcess::fetchList($conds, true, $offset, $limit);
$plistCount = eZWorkflowProcess::count(eZWorkflowProcess::definition(), $conds);
$totalProcessCount = 0;
$outList2 = array();
foreach ($plist as $p) {
$mementoMain = eZOperationMemento::fetchMain($p->attribute('memento_key'));
$mementoChild = eZOperationMemento::fetchChild($p->attribute('memento_key'));
if (!$mementoMain or !$mementoChild) {
continue;
}
$mementoMainData = $mementoMain->data();
$mementoChildData = $mementoChild->data();
$triggers = eZTrigger::fetchList(array('module_name' => $mementoChildData['module_name'], 'function_name' => $mementoChildData['operation_name'], 'name' => $mementoChildData['name']));
if (count($triggers) > 0) {
$trigger = $triggers[0];
if (is_object($trigger)) {
$nkey = $trigger->attribute('module_name') . '/' . $trigger->attribute('function_name') . '/' . $trigger->attribute('name');
示例2: removeThis
function removeThis()
{
$workflowParameters = $this->attribute('parameter_list');
$cleanupList = array();
$db = eZDB::instance();
$db->begin();
if (isset($workflowParameters['cleanup_list']) && is_array($workflowParameters['cleanup_list'])) {
$cleanupList = $workflowParameters['cleanup_list'];
foreach ($cleanupList as $workflowEventID) {
$workflowEvent = eZWorkflowEvent::fetch($workflowEventID);
$workflowType = $workflowEvent->eventType();
$workflowType->cleanup($this, eZWorkflowEvent::fetch($workflowEventID));
}
}
eZPersistentObject::removeObject(eZWorkflowProcess::definition(), array('id' => $this->attribute('id')));
$db->commit();
}