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


PHP processMap::getExtDynaformsList方法代码示例

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


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

示例1: explode

    $sStep = $aStepTypeId[0];
    $sType = $aStepTypeId[1];
}
//$_GET['sid'] gets STEP_UID and sTYPE(i.e BEFORE and AFTER) in format STEP_UID-sTYPE
if (isset($_GET['stepid'])) {
    $aStepTypeId = explode('|', $_GET['stepid']);
    $_SESSION['stepUID'] = $_GET['stepid'];
    //$aStepTypeId = explode('-','2517180104cd42c25cc39e4071099227-BEFORE');
    $sStep = $aStepTypeId[0];
    $sType = $aStepTypeId[1];
}
$start = isset($_POST['start']) ? $_POST['start'] : 0;
$limit = isset($_POST['limit']) ? $_POST['limit'] : '';
switch ($_GET['action']) {
    case 'getDynaformList':
        $result = $oProcessMap->getExtDynaformsList($start, $limit, $_GET['pid']);
        print G::json_encode($result);
        break;
    case 'getPMTableDynaform':
        $oAdditionalTables = new AdditionalTables();
        $aData = $oAdditionalTables->load($_GET['tabId'], true);
        $addTabName = $aData['ADD_TAB_NAME'];
        foreach ($aData['FIELDS'] as $iRow => $aRow) {
            if ($aRow['FLD_KEY'] == 1) {
                $rows[] = $aRow;
            }
        }
        $result['totalCount'] = count($rows);
        $result['data'] = $rows;
        print G::json_encode($result);
        break;
开发者ID:nshong,项目名称:processmaker,代码行数:31,代码来源:proxyExtjs.php

示例2: processMap

<?php

try {
    G::LoadClass('processMap');
    $oProcessMap = new processMap(new DBConnection());
    if (isset($_GET['pid'])) {
        //Getting Dynaform List
        $rows = $oProcessMap->getExtDynaformsList($_GET['pid']);
        array_shift($rows);
    } else {
        if (isset($_GET['tabId'])) {
            $oAdditionalTables = new AdditionalTables();
            $aData = $oAdditionalTables->load($_GET['tabId'], true);
            $addTabName = $aData['ADD_TAB_NAME'];
            foreach ($aData['FIELDS'] as $iRow => $aRow) {
                if ($aRow['FLD_KEY'] == 1) {
                    $rows[] = $aRow;
                }
            }
        } else {
            //Getting Dynaform List
            $rows = $oProcessMap->getExtAdditionalTablesList();
        }
    }
    $result['totalCount'] = count($rows);
    $result['data'] = $rows;
    print G::json_encode($result);
} catch (Exception $e) {
    print G::json_encode($e->getMessage());
}
开发者ID:nshong,项目名称:processmaker,代码行数:30,代码来源:proxyDynaform.php


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