本文整理匯總了PHP中Opportunity::rerate方法的典型用法代碼示例。如果您正苦於以下問題:PHP Opportunity::rerate方法的具體用法?PHP Opportunity::rerate怎麽用?PHP Opportunity::rerate使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Opportunity
的用法示例。
在下文中一共展示了Opportunity::rerate方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Exception
}
// ratingop here
$rrr = '';
for ($ri = 0; $ri < 6; $ri++) {
if (!isset($ros[$ri])) {
$ros[$ri] = 0;
}
$rrr .= ($rrr ? ',' : '') . 'ro' . ($ri + 1) . '=' . $ros[$ri];
}
if ($rrr) {
$sql = "update ratingop set {$rrr} where roid = {$ooid}";
$result = $db->query($sql);
if (!$result) {
throw new Exception(DEBUG ? "{$db->error}: {$sql}" : 'Can not update aux answers', __LINE__);
}
$opp->rerate();
}
if ($mesg) {
$result = false;
$mesg = "Please correct the following before proceeding: {$mesg}";
}
if ($result) {
$redir = isset($_POST['submit2']) ? "opportunadmin.php?oid={$ooid}&acct={$uacct}&cid={$usid}&mas={$masid}" : "opportunadmin.php?acct={$uacct}&cid={$usid}&mas={$masid}";
//$mesg = "Answers updated, please wait a moment... If automatic redirection does not work, please <a href=\"opportunities.php\">click here to proceed</a>.";
}
$quest->data_seek(0);
}
// not submit
} else {
$redir = "opportunadmin.php?acct={$uacct}&cid={$usid}&mas={$masid}";
//$mesg = "No specialty questions, skipping... If automatic redirection does not work, please <a href=\"opportunities.php\">click here to proceed</a>.";