本文整理汇总了PHP中Cases::GetAllThreads方法的典型用法代码示例。如果您正苦于以下问题:PHP Cases::GetAllThreads方法的具体用法?PHP Cases::GetAllThreads怎么用?PHP Cases::GetAllThreads使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cases
的用法示例。
在下文中一共展示了Cases::GetAllThreads方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Users
$Fields['APP_STATUS'] = $appFields['APP_STATUS'];
$Fields['STATUS'] = $appFields['STATUS'];
$Fields['APP_TITLE'] = $appFields['TITLE'];
$Fields['PRO_UID'] = $appFields['PRO_UID'];
$Fields['APP_PARALLEL'] = $appFields['APP_PARALLEL'];
$Fields['APP_INIT_USER'] = $appFields['APP_INIT_USER'];
$Fields['APP_CUR_USER'] = $appFields['APP_CUR_USER'];
$Fields['APP_DATA'] = $appFields['APP_DATA'];
$Fields['CREATOR'] = $appFields['CREATOR'];
$Fields['APP_PIN'] = $appFields['APP_PIN'];
$Fields['APP_PROC_CODE'] = $appFields['APP_PROC_CODE'];
$Fields['PRO_TITLE'] = Content::load('PRO_TITLE', '', $appFields['PRO_UID'], SYS_LANG);
$oUser = new Users();
$oUser->load($appFields['APP_CUR_USER']);
$Fields['CUR_USER'] = $oUser->getUsrFirstname() . ' ' . $oUser->getUsrLastname();
$threads = $oCase->GetAllThreads($appFields['APP_UID']);
$Fields['THREADS'] = $threads;
$Fields['CANT_THREADS'] = count($threads);
$Fields['CANT_APP_DATA'] = count($Fields['APP_DATA']);
$delegations = $oCase->GetAllDelegations($appFields['APP_UID']);
foreach ($delegations as $key => $val) {
$delegations[$key]['TAS_TITLE'] = Content::load('TAS_TITLE', '', $val['TAS_UID'], SYS_LANG);
if ($val['USR_UID'] != -1) {
$oUser->load($val['USR_UID']);
$delegations[$key]['USR_NAME'] = $oUser->getUsrFirstname() . ' ' . $oUser->getUsrLastname();
} else {
$delegations[$key]['USR_NAME'] = G::LoadTranslation('ID_UNKNOW_USER') . G::LoadTranslation('ID_SUBPROCESS_USER');
}
}
$Fields['CANT_DELEGATIONS'] = count($delegations);
$Fields['DELEGATIONS'] = $delegations;