本文整理汇总了PHP中Cases::getStartCases方法的典型用法代码示例。如果您正苦于以下问题:PHP Cases::getStartCases方法的具体用法?PHP Cases::getStartCases怎么用?PHP Cases::getStartCases使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cases
的用法示例。
在下文中一共展示了Cases::getStartCases方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: processListVerified
/**
* process list verified
*
* @param string sessionId : The session ID which is obtained when logging in
* @param string userId :
* @return $result will return an object
*/
public function processListVerified ($userId)
{
try {
$oCase = new Cases();
$rows = $oCase->getStartCases( $userId );
$result = array ();
foreach ($rows as $key => $val) {
if ($key != 0) {
$result[] = array ('guid' => $val['pro_uid'],'name' => $val['value']
);
}
}
return $result;
} catch (Exception $e) {
$result[] = array ('guid' => $e->getMessage(),'name' => $e->getMessage()
);
return $result;
}
}
示例2: Cases
<select style="width: 300px;" name="form[TAS_UID]" id="form[TAS_UID]" class="module_app_input___gray" required="1">
<?php
//$oUserId = '2963666854afbb1cea372c4011254883';
//$oProcessId = '9977730834afd2a0deecaf3040551794';
$oUserId = $_POST['USR_UID'];
$oProcessId = $_POST['PRO_UID'];
G::LoadClass('case');
$oCase = new Cases();
$startTasks = $oCase->getStartCases($oUserId);
foreach ($startTasks as $task) {
if (isset($task['pro_uid']) && $task['pro_uid'] == $oProcessId) {
$taskValue = explode('(', $task['value']);
$tasksLastIndex = count($taskValue) - 1;
$taskValue = explode(')', $taskValue[$tasksLastIndex]);
echo "<option value=\"" . $task['uid'] . "\">" . $taskValue[0] . "</option>";
}
}
//print_r($startTasks);
// echo "<option value=\"".$value."\">".$label."</option>";
?>
</select>