當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Courses::viewCourseFullDetails方法代碼示例

本文整理匯總了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;
}
開發者ID:nagyist,項目名稱:Samarthya,代碼行數:54,代碼來源:dac.youtube.php

示例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++) {
開發者ID:nagyist,項目名稱:Samarthya,代碼行數:31,代碼來源:dac.courses.php


注:本文中的Courses::viewCourseFullDetails方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。