本文整理汇总了PHP中eZWorkflowProcess::count方法的典型用法代码示例。如果您正苦于以下问题:PHP eZWorkflowProcess::count方法的具体用法?PHP eZWorkflowProcess::count怎么用?PHP eZWorkflowProcess::count使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eZWorkflowProcess
的用法示例。
在下文中一共展示了eZWorkflowProcess::count方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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');