本文整理汇总了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') {
示例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":