本文整理汇总了PHP中Courses::getListOfActivatedCourseDetails方法的典型用法代码示例。如果您正苦于以下问题:PHP Courses::getListOfActivatedCourseDetails方法的具体用法?PHP Courses::getListOfActivatedCourseDetails怎么用?PHP Courses::getListOfActivatedCourseDetails使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Courses
的用法示例。
在下文中一共展示了Courses::getListOfActivatedCourseDetails方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Courses
} else {
if ($action == 'AddUserVisitedHistory') {
$courseLinksID = $_GET["courseLinksID"];
$userID = $_GET["userID"];
$CourseID = $_GET["CourseID"];
$View = '1';
$course = new Courses();
$course->activateCoursesDetails($courseLinksID, $userID, $CourseID, $View);
} else {
if ($action == 'checkForAssessmentTest') {
$userId = $_GET["userId"];
$courseId = $_GET["course"];
$course = new Courses();
$json = $course->viewCourseFullDetails($courseId);
// from courselink table
$userjson = $course->getListOfActivatedCourseDetails($userId, $courseId);
// from courseuserview table
$dejson = json_decode($json);
$deuserjson = json_decode($userjson);
/*
echo "JSON : ".$json;
echo "USER-JSON : ".$userjson;
*/
$count = array();
for ($subcourseInd = 0; $subcourseInd < count($dejson); $subcourseInd++) {
for ($userlistInd = 0; $userlistInd < count($deuserjson); $userlistInd++) {
if ($dejson[$subcourseInd]->{'idCourseLinks'} == $deuserjson[$userlistInd]->{'courseLinksID'}) {
$trigger = false;
for ($countInd = 0; $countInd < count($count); $countInd++) {
if ($count[$countInd] == $dejson[$subcourseInd]->{'idCourseLinks'}) {
$trigger = true;