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


PHP Configurations::loadObject方法代码示例

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


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

示例1: Configurations

 */
/**
 * Cases list (Refactored)
 * By Erik A. O. <erik@colosa.com, aortiz.erik@gmail.com>
 */
/* Permissions */
if (($RBAC_Response = $RBAC->userCanAccess("PM_CASES")) != 1) {
    return $RBAC_Response;
}
/* Includes */
G::LoadClass('case');
G::LoadClass('configuration');
// $_GET['l'] has the type of cases list like todo,pause,cancel, all
$conf = new Configurations();
if (!isset($_GET['l'])) {
    $confCasesList = $conf->loadObject('ProcessMaker', 'cases_List', '', $_SESSION['USER_LOGGED'], '');
    if (is_array($confCasesList)) {
        $sTypeList = $confCasesList['sTypeList'];
    } else {
        $sTypeList = 'to_do';
    }
} else {
    $sTypeList = $_GET['l'];
    $confCasesList = array('sTypeList' => $sTypeList);
    $conf->saveObject($confCasesList, 'ProcessMaker', 'cases_List', '', $_SESSION['USER_LOGGED'], '');
}
$sUIDUserLogged = $_SESSION['USER_LOGGED'];
$_SESSION['CASES_MENU_OPTION'] = $sTypeList;
$oCases = new Cases();
/** here we verify if there is a any case with a unpause on this day*/
if ($sTypeList === 'to_do' or $sTypeList === 'draft' or $sTypeList === 'paused') {
开发者ID:nshong,项目名称:processmaker,代码行数:31,代码来源:cases_List.php

示例2: isset

    echo G::json_encode($result);
}
require_once "classes" . PATH_SEP . "model" . PATH_SEP . "Fields.php";
G::LoadClass("BasePeer");
G::LoadClass("configuration");
$callback = isset($_POST["callback"]) ? $_POST["callback"] : "stcCallback1001";
$dir = isset($_POST["dir"]) ? $_POST["dir"] : "DESC";
$sort = isset($_POST["sort"]) ? $_POST["sort"] : "";
$query = isset($_POST["query"]) ? $_POST["query"] : "";
$tabUid = isset($_POST["table"]) ? $_POST["table"] : "";
$action = isset($_POST["action"]) ? $_POST["action"] : "todo";
$xaction = isset($_POST["xaction"]) ? $_POST["xaction"] : "FIELD_SAVE";
try {
    //Load the current configuration for this action, this configuration will be used later
    $conf = new Configurations();
    $confCasesList = $conf->loadObject("casesList", $action, "", "", "");
    switch ($xaction) {
        case "FIELD_SET":
            if (is_array($confCasesList) && isset($confCasesList['second']['data'])) {
                foreach ($confCasesList['second']['data'] as $key => $value) {
                    $confCasesList['second']['data'][$key]['align_label'] = $confCasesList['second']['data'][$key]['align'];
                }
            }
            fieldSet();
            break;
        case "FIELD_RESET":
        case "FIELD_RESET_ID":
            fieldReset($xaction == "FIELD_RESET" ? 1 : 0);
            break;
        case "FIELD_COMPLETE":
        case "FIELD_COMPLETE_ID":
开发者ID:emildev35,项目名称:processmaker,代码行数:31,代码来源:proxyPMTablesFieldList.php


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