本文整理匯總了PHP中learnpath::learnpath方法的典型用法代碼示例。如果您正苦於以下問題:PHP learnpath::learnpath方法的具體用法?PHP learnpath::learnpath怎麽用?PHP learnpath::learnpath使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類learnpath
的用法示例。
在下文中一共展示了learnpath::learnpath方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: aicc
/**
* Class constructor. Based on the parent constructor.
* @param string Course code
* @param integer Learnpath ID in DB
* @param integer User ID
*/
function aicc($course_code = null, $resource_id = null, $user_id = null)
{
if ($this->debug > 0) {
error_log('In aicc::aicc()', 0);
}
if (!empty($course_code) and !empty($resource_id) and !empty($user_id)) {
parent::learnpath($course_code, $resource_id, $user_id);
} else {
//do nothing but still build the aicc object
}
}
示例2: scorm
/**
* Class constructor. Based on the parent constructor.
* @param string Course code
* @param integer Learnpath ID in DB
* @param integer User ID
*/
function scorm($course_code = null, $resource_id = null, $user_id = null)
{
if ($this->debug > 0) {
error_log('New LP - scorm::scorm(' . $course_code . ',' . $resource_id . ',' . $user_id . ') - In scorm constructor', 0);
}
if (!empty($course_code) and !empty($resource_id) and !empty($user_id)) {
parent::learnpath($course_code, $resource_id, $user_id);
} else {
//do nothing but still build the scorm object
}
}