本文整理汇总了PHP中ApplicationPeer::doSelectRs方法的典型用法代码示例。如果您正苦于以下问题:PHP ApplicationPeer::doSelectRs方法的具体用法?PHP ApplicationPeer::doSelectRs怎么用?PHP ApplicationPeer::doSelectRs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ApplicationPeer
的用法示例。
在下文中一共展示了ApplicationPeer::doSelectRs方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loadCaseByNumber
public function loadCaseByNumber($sCaseNumber)
{
//('SELECT * FROM APP_DELEGATION WHERE APP_PROC_CODE="'.$sCaseNumber.'" ');
try {
$aCases = array();
$c = new Criteria();
$c->add(ApplicationPeer::APP_PROC_CODE, $sCaseNumber);
$rs = ApplicationPeer::doSelectRs($c);
$rs->setFetchmode(ResultSet::FETCHMODE_ASSOC);
$rs->next();
$row = $rs->getRow();
while (is_array($row)) {
$case['APP_UID'] = $row['APP_UID'];
$case['APP_NUMBER'] = $row['APP_NUMBER'];
$case['APP_STATUS'] = $row['APP_STATUS'];
$case['PRO_UID'] = $row['PRO_UID'];
$case['APP_PARALLEL'] = $row['APP_PARALLEL'];
$case['APP_CUR_USER'] = $row['APP_CUR_USER'];
$aCases[] = $case;
$rs->next();
$row = $rs->getRow();
}
return $aCases;
} catch (exception $e) {
throw ($e);
}
}
示例2: Criteria
// $docVersion;
$aFields['APP_DOC_UID'] = $oAppDocument->getAppDocUid();
//$appDocUid;
$appDocUid = $aFields['APP_DOC_UID'];
$oAppDocument->update($aFields);
//$option = 'pmDrive';
//add permissions
$criteria = new Criteria('workflow');
$criteria->addSelectColumn(ApplicationPeer::PRO_UID);
$criteria->addSelectColumn(TaskUserPeer::TAS_UID);
$criteria->addSelectColumn(TaskUserPeer::USR_UID);
$criteria->addSelectColumn(TaskUserPeer::TU_RELATION);
$criteria->add(ApplicationPeer::APP_UID, $applicationUid);
$criteria->addJoin(ApplicationPeer::PRO_UID, TaskPeer::PRO_UID, Criteria::LEFT_JOIN);
$criteria->addJoin(TaskPeer::TAS_UID, TaskUserPeer::TAS_UID, Criteria::LEFT_JOIN);
$dataset = ApplicationPeer::doSelectRs($criteria);
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
$userPermission = array();
$case = new Cases();
while ($dataset->next()) {
$row = $dataset->getRow();
if ($row['TU_RELATION'] == 1) {
//users
$dataUser = $user->load($row['USR_UID']);
if (array_search($dataUser['USR_EMAIL'], $userPermission) === false) {
$objectPermissions = $case->getAllObjects($row['PRO_UID'], $applicationUid, $row['TAS_UID'], $row['USR_UID']);
if (array_search($appDocUid, $objectPermissions['OUTPUT_DOCUMENTS']) !== false) {
$userPermission[] = $dataUser['USR_EMAIL'];
}
}
} else {