本文整理汇总了PHP中Courses::getCourseId方法的典型用法代码示例。如果您正苦于以下问题:PHP Courses::getCourseId方法的具体用法?PHP Courses::getCourseId怎么用?PHP Courses::getCourseId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Courses
的用法示例。
在下文中一共展示了Courses::getCourseId方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Courses
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
require 'dal.courses.php';
$action = $_GET["action"];
if ($action == 'courseListOnly') {
$course = new Courses();
$json = $course->viewCourseDetailsOnly();
echo $json;
} else {
if ($action == 'GetCourseId') {
$courseName = $_GET["courseName"];
$course = new Courses();
$json = $course->getCourseId($courseName);
echo $json;
} else {
if ($action == 'AddcourseVisited') {
if (function_exists('date_default_timezone_set')) {
date_default_timezone_set('Asia/Calcutta');
}
$userId = $_GET["userId"];
$courseObj = new Courses();
$course = $_GET["course"];
$date = date("d/m/Y");
$startTime = date("h:i:sa");
$status = $_GET["status"];
$ipaddress = urlencode($_GET["ipaddress"]);
echo $courseObj->addCourseLogs($course, $date, $startTime, $status, $userId, $ipaddress);
} else {
示例2: Courses
$colheader[$headerIndex] = $Row[$headerIndex];
}
} else {
$idTestDetails;
$courselinkId;
$question;
$option1;
$option2;
$option3;
$option4;
$answer;
$active;
for ($dataIndex = 0; $dataIndex < count($Row); $dataIndex++) {
$courseObj = new Courses();
if ($dataIndex == 0) {
$idTestDetails = $courseObj->getCourseId($Row[$dataIndex]);
} else {
if ($dataIndex == 1) {
$courselinkId = $courseObj->getCourseLinkId($Row[$dataIndex]);
} else {
if ($dataIndex == 2) {
$question = $Row[$dataIndex];
} else {
if ($dataIndex == 3) {
$option1 = $Row[$dataIndex];
} else {
if ($dataIndex == 4) {
$option2 = $Row[$dataIndex];
} else {
if ($dataIndex == 5) {
$option3 = $Row[$dataIndex];