当前位置: 首页>>代码示例>>PHP>>正文


PHP processMap::getExtStepsCriteria方法代码示例

本文整理汇总了PHP中processMap::getExtStepsCriteria方法的典型用法代码示例。如果您正苦于以下问题:PHP processMap::getExtStepsCriteria方法的具体用法?PHP processMap::getExtStepsCriteria怎么用?PHP processMap::getExtStepsCriteria使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在processMap的用法示例。


在下文中一共展示了processMap::getExtStepsCriteria方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: count

 case 'getAvailableCaseTrackerObjects':
     $rows = $oProcessMap->getAvailableExtCaseTrackerObjects($_GET['pid']);
     array_shift($rows);
     $result['totalCount'] = count($rows);
     $result['data'] = $rows;
     print G::json_encode($result);
     break;
 case 'getAvailableSteps':
     $rows = $oProcessMap->getExtAvailableBBCriteria($_GET['pid'], $_GET['tid']);
     array_shift($rows);
     $result['totalCount'] = count($rows);
     $result['data'] = $rows;
     print G::json_encode($result);
     break;
 case 'getAssignedSteps':
     $rows = $oProcessMap->getExtStepsCriteria($start, $limit, $_GET['tid']);
     $result['totalCount'] = $oProcessMap->getAllStepCount();
     array_shift($rows);
     $result['data'] = $rows;
     print G::json_encode($result);
     break;
 case 'getAssignedUsersList':
     $rows = $oProcessMap->usersExtList($start, $limit, $_GET['pid'], $_GET['tid']);
     $result['totalCount'] = $oProcessMap->getAllTaskUserCount();
     array_shift($rows);
     $result['data'] = $rows;
     print G::json_encode($result);
     break;
 case 'getAvailableUsersList':
     $rows = $oProcessMap->getAvailableExtUsersCriteria($_GET['tid']);
     $result['totalCount'] = count($rows);
开发者ID:nshong,项目名称:processmaker,代码行数:31,代码来源:proxyExtjs.php

示例2: processMap

<?php

try {
    G::LoadClass('processMap');
    $oProcessMap = new processMap(new DBConnection());
    if (isset($_GET['tid'])) {
        $rows = $oProcessMap->getExtStepsCriteria($_GET['tid']);
        //Getting all assigned steps on a task
        array_shift($rows);
    }
} catch (Exception $e) {
    print G::json_encode($e->getMessage());
}
$steps = array();
//@@stepsChildren is an array that stores before and after triggers tree data for a step
$stepsChildren = array();
$assignChildren = array();
//@@assignTaskChildren is an array that stores Before Assignment,Before Derivation and After Derivation triggers tree data for assigned task
$assignTaskChildren = array();
//Creating steps array for populating tree depending on count of assigned steps to a task
for ($i = 0; $i < count($rows); $i++) {
    //Getting beforeTriggersCount for a step
    $beforeTriggers = $oProcessMap->getStepTriggersCriteria($rows[$i]['STEP_UID'], $_GET['tid'], 'BEFORE');
    $beforeTriggersCount = StepTriggerPeer::doCount($beforeTriggers);
    //Getting afterTriggersCount for a step
    $afterTriggers = $oProcessMap->getStepTriggersCriteria($rows[$i]['STEP_UID'], $_GET['tid'], 'AFTER');
    $afterTriggersCount = StepTriggerPeer::doCount($afterTriggers);
    $iTotal = $beforeTriggersCount + $afterTriggersCount;
    //Tree level 3 nodes i.e. final nodes (Leaf Nodes)
    $beforeTriggerChildren[0] = array('text' => 'Assign / Show Before Triggers', 'id' => $rows[$i]['STEP_UID'] . '|BEFORE', 'leaf' => true);
    $afterTriggerChildren[0] = array('text' => 'Assign / Show  After Triggers', 'id' => $rows[$i]['STEP_UID'] . '|AFTER', 'leaf' => true);
开发者ID:nshong,项目名称:processmaker,代码行数:31,代码来源:get-tree.php


注:本文中的processMap::getExtStepsCriteria方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。