本文整理汇总了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>.";