本文整理汇总了PHP中Courses::viewCourseFullDetails方法的典型用法代码示例。如果您正苦于以下问题:PHP Courses::viewCourseFullDetails方法的具体用法?PHP Courses::viewCourseFullDetails怎么用?PHP Courses::viewCourseFullDetails使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Courses
的用法示例。
在下文中一共展示了Courses::viewCourseFullDetails方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: youtubeBuilder
/**
* Description of dac
*
* @author user1
*/
function youtubeBuilder($courseID)
{
$courseObj = new Courses();
$json = $courseObj->viewCourseFullDetails($courseID);
$dejson = json_decode($json);
$html = '';
for ($ind = 0; $ind < count($dejson); $ind++) {
$subcourseId = $dejson[$ind]->{'idCourseLinks'};
$courseId = $dejson[$ind]->{'courseID'};
$title = $dejson[$ind]->{'title'};
$engVideo = $dejson[$ind]->{'courseEngVideoLink'};
$hindiVideo = $dejson[$ind]->{'courseEngVideoLink'};
$telVideo = $dejson[$ind]->{'courseEngVideoLink'};
$engPDF = $dejson[$ind]->{'courseEngPDFLink'};
$html .= '<div class="col-xs-12 col-xs-6 col-md-4">';
$html .= '<div class="course-video">';
$html .= '<h5 class="course-title">' . $title . '</h5>';
if (isset($engVideo)) {
$html .= '<div id="englishVideo" align="center" class="video-frame">';
$html .= '<iframe width="92%" height="80%" src="' . $engVideo . '" frameborder="0" allowfullscreen></iframe>';
$html .= '</div>';
} else {
if (isset($hindiVideo)) {
$html .= '<div id="hindiVideo" align="center" class="video-frame">';
$html .= '<iframe width="92%" height="80%" src="' . $hindiVideo . '" frameborder="0" allowfullscreen onclick="alert(\\"English Video\\")"></iframe>';
$html .= '</div>';
} else {
if (isset($telVideo)) {
$html .= '<div id="teluguVideo" align="center" class="video-frame">';
$html .= '<a href="' . $telVideo . '"';
$html .= '<iframe width="92%" height="80%" src="' . $telVideo . '" frameborder="0" allowfullscreen></iframe>';
$html .= '</a>';
$html .= '</div>';
}
}
}
$html .= '<div>';
$html .= '<a href="' . $engVideo . '" target="new"><div class="english"></div></a>';
$html .= '<a href="' . $hindiVideo . '" target="new"><div class="hindi"></div></a>';
$html .= '<a href="' . $telVideo . '" target="new"><div class="telugu"></div></a>';
$html .= '<a href="' . $engPDF . '" target="new" onclick="pdfDownloadLogs(\'' . $title . '\',\'' . $subcourseId . '\',\'' . $courseId . '\')">';
$html .= '<div class="pdf-download"></div>';
$html .= '</a>';
$html .= '</div>';
$html .= '</div>';
$html .= '</div>';
}
return $html;
}
示例2: Courses
$course = new Courses();
$course->deleteCourseLink($idCourseLinks, $courseName, $title);
} 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++) {