本文整理汇总了PHP中Evaluation::startEvaluation方法的典型用法代码示例。如果您正苦于以下问题:PHP Evaluation::startEvaluation方法的具体用法?PHP Evaluation::startEvaluation怎么用?PHP Evaluation::startEvaluation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Evaluation
的用法示例。
在下文中一共展示了Evaluation::startEvaluation方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: htmlentities
// $auth->creatprofile($fname, $lname, $mname, $regno, $entryYear, $dateOfBirth, $gender, $email, $phone, $address, $username, $password,$family, $passport);
//header('Location:e-learning.com/?view=register&feedback=Thank you for registering');
}
//header('location:../?view=registerView&feedback='.urlnecode('Thank you for registering! Do you want to <a href="/">Login</a>'));
// header('Location:../?view=register&feedback=Thank you for registering\nDo you wantn to <a href="/">Login</a>');
//this code is used for evaluation
if (isset($_POST["config"])) {
$user_id = $_SESSION['user_id'];
$qCount = htmlentities(htmlspecialchars($_POST["qCount"]));
$qCat = htmlentities(htmlspecialchars($_POST["qCategory"]));
$qStyle = htmlentities(htmlspecialchars($_POST["qStyle"]));
$qTime = htmlentities(htmlspecialchars($_POST["qTime"]));
$evaluation = new Evaluation();
//check if user has configured evaluation before if true, reset values, else configure new values
//$evaluation->configureEValuation($user_id, $qCount, $qCat, $qStyle, $qTime);
echo $evaluation->startEvaluation($user_id, $qCount, $qCat, $qStyle, $qTime);
}
if (isset($_POST["continueEval"])) {
$evaluation = new Evaluation();
$user_id = $_SESSION['user_id'];
$currentCount = htmlentities(htmlspecialchars($_POST["currentCount"]));
$currentCatName = htmlentities(htmlspecialchars($_POST["currentCatName"]));
$currentId = htmlentities(htmlspecialchars($_POST["currentqId"]));
$currentTime = htmlentities(htmlspecialchars($_POST["currentTime"]));
$option = htmlentities(htmlspecialchars($_POST["option"]));
$correctAns = htmlentities(htmlspecialchars($_POST["correctAns"]));
//initial
$qCount = htmlentities(htmlspecialchars($_POST["qCount"]));
$qCat = htmlentities(htmlspecialchars($_POST["qCat"]));
$qStyle = htmlentities(htmlspecialchars($_POST["qStyle"]));
$qTime = htmlentities(htmlspecialchars($_POST["qTime"]));