Fixes class name LearnpathList

1.10.x
Julio Montoya 11 years ago
parent 57eeea7543
commit 1ede08ef43
  1. 1
      main/admin/user_move_stats.php
  2. 2
      main/exercice/exercise.lib.php
  3. 1
      main/exercice/exercise_submit_modal.php
  4. 3
      main/exercice/hotspot_admin.inc.php
  5. 2
      main/exercice/unique_answer.class.php
  6. 3
      main/inc/ajax/course_home.ajax.php
  7. 1
      main/inc/ajax/model.ajax.php
  8. 1
      main/inc/lib/myspace.lib.php
  9. 2
      main/inc/lib/sessionmanager.lib.php
  10. 4
      main/newscorm/learnpathList.class.php
  11. 2
      main/tracking/course_session_report.php
  12. 3
      main/tracking/lp_results_by_user.php
  13. 2
      main/tracking/question_course_report.php
  14. 1
      main/webservices/webservice_report.php
  15. 1
      main/wiki/index.php

@ -12,7 +12,6 @@ require_once '../inc/global.inc.php';
$this_section=SECTION_PLATFORM_ADMIN;
api_protect_admin_script();
require_once '../newscorm/learnpathList.class.php';
$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
$debug = 0;

@ -1404,7 +1404,7 @@ function get_exam_results_data(
}
}
$lp_list_obj = new learnpathList(api_get_user_id());
$lp_list_obj = new LearnpathList(api_get_user_id());
$lp_list = $lp_list_obj->get_flat_list();
if (is_array($results)) {

@ -487,7 +487,6 @@ if ($try==1) {
// the link to theory (a learning path)
if (!empty($lp)) {
$lp_url= api_get_path(WEB_CODE_PATH).'newscorm/lp_controller.php?'.api_get_cidreq().'&action=view&lp_id='.$lp;
require_once('../newscorm/learnpathList.class.php');
$list = new LearnpathList(api_get_user_id());
$flat_list = $list->get_flat_list();
$links.= Display :: return_icon('theory.gif', '', array ('style' => 'padding-left:0px;padding-right:5px;')).'<a target="_blank" href="'.$lp_url.'">'.get_lang('SeeTheory').'</a><br />';

@ -566,7 +566,7 @@ if ($modifyAnswers) {
</tr>
<?php
require_once '../newscorm/learnpathList.class.php';
$list = new LearnpathList(api_get_user_id());
$flat_list = $list->get_flat_list(); //loading list of LPs
@ -874,7 +874,6 @@ if ($modifyAnswers) {
</tr>
<?php
}
require_once '../newscorm/learnpathList.class.php';
$list = new LearnpathList(api_get_user_id());
$flat_list = $list->get_flat_list();
$select_lp_id = array();

@ -106,8 +106,6 @@ class UniqueAnswer extends Question
$question_list = $obj_ex->selectQuestionList();
$select_question = array();
$select_question[0] = get_lang('SelectTargetQuestion');
require_once '../newscorm/learnpathList.class.php';
if (is_array($question_list)) {
foreach ($question_list as $key => $questionid) {
//To avoid warning messages

@ -106,7 +106,6 @@ switch ($action) {
*/
require_once '../global.inc.php';
require_once api_get_path(SYS_CODE_PATH).'newscorm/learnpathList.class.php';
$now = time();
$page = intval($_REQUEST['page']); //page
$limit = intval($_REQUEST['rows']); // quantity of rows
@ -231,7 +230,6 @@ switch ($action) {
break;
case 'session_courses_lp_by_week':
require_once '../global.inc.php';
require_once api_get_path(SYS_CODE_PATH).'newscorm/learnpathList.class.php';
$now = time();
$page = intval($_REQUEST['page']); //page
@ -357,7 +355,6 @@ switch ($action) {
break;
case 'session_courses_lp_by_course':
require_once '../global.inc.php';
require_once api_get_path(SYS_CODE_PATH).'newscorm/learnpathList.class.php';
$now = time();
$page = intval($_REQUEST['page']); //page
$limit = intval($_REQUEST['rows']); // quantity of rows

@ -852,7 +852,6 @@ switch ($action) {
'firstname',
'lastname',
);
require_once api_get_path(SYS_CODE_PATH).'newscorm/learnpathList.class.php';
$lessons = LearnpathList::get_course_lessons($course['code'], $sessionId);
foreach ($lessons as $lesson_id => $lesson) {
$columns[] = $lesson_id;

@ -514,7 +514,6 @@ class MySpace
get_lang('LastName'),
);
//add lessons of course
require_once api_get_path(SYS_CODE_PATH).'newscorm/learnpathList.class.php';
$lessons = LearnpathList::get_course_lessons($course['code'], $sessionId);
//create columns array

@ -626,7 +626,6 @@ class SessionManager
}
//Get lessons
require_once api_get_path(SYS_CODE_PATH) . 'newscorm/learnpathList.class.php';
$lessons = LearnpathList::get_course_lessons($course['code'], $sessionId);
$table = array();
@ -3443,7 +3442,6 @@ class SessionManager
if ($course_info) {
//By default new elements are invisible
if ($set_exercises_lp_invisible) {
require_once api_get_path(SYS_CODE_PATH) . 'newscorm/learnpathList.class.php';
$list = new LearnpathList('', $course_info['code'], $sid);
$flat_list = $list->get_flat_list();
if (!empty($flat_list)) {

@ -2,7 +2,7 @@
/* For licensing terms, see /license.txt */
/**
* Class learnpathList
* Class LearnpathList
* This class is only a learning path list container with several practical methods for sorting the list and
* provide links to specific paths
* @uses Database.lib.php to use the database
@ -10,7 +10,7 @@
* @author Yannick Warnier <ywarnier@beeznest.org>
*
*/
class learnpathList
class LearnpathList
{
// Holds a flat list of learnpaths data from the database.
public $list = array();

@ -94,7 +94,7 @@ foreach ($course_list as $current_course ) {
$attempt_result = array();
//Getting LP list
$list = new learnpathList('', $current_course['code'], $session_id);
$list = new LearnpathList('', $current_course['code'], $session_id);
$lp_list = $list->get_flat_list();
// Looping LPs

@ -120,7 +120,6 @@ if (!$export_to_csv) {
$form->display();
//echo '<h3>'.sprintf(get_lang('FilteringWithScoreX'), $filter_score).'%</h3>';
}
require_once api_get_path(SYS_CODE_PATH).'newscorm/learnpathList.class.php';
$main_result = array();
$session_id = 0;
$user_list = array();
@ -131,7 +130,7 @@ foreach($course_list as $current_course ) {
//Getting LP list
$list = new learnpathList('', $current_course['code'], $session_id);
$list = new LearnpathList('', $current_course['code'], $session_id);
$lp_list = $list->get_flat_list();
// Looping LPs

@ -86,7 +86,7 @@ $form->setDefaults(array('course_code'=>(string)$course_code));
$course_info = api_get_course_info($course_code);
//var_dump($session_id);
if (!empty($course_info)) {
$list = new learnpathList('', $course_code);
$list = new LearnpathList('', $course_code);
$lp_list = $list->get_flat_list();
$_course = $course_info;
$main_question_list = array();

@ -97,7 +97,6 @@ class WSReport extends WS {
$course_code = CourseManager::get_course_code_from_course_id($course_id);
}
require_once api_get_path(SYS_CODE_PATH).'newscorm/learnpathList.class.php';
$lp = new LearnpathList($user_id,$course_code);
$list = $lp->list;
$return = array();

@ -23,7 +23,6 @@ $wiki->charset = $charset;
// section (for the tabs)
$this_section = SECTION_COURSES;
$current_course_tool = TOOL_WIKI;
require_once api_get_path(LIBRARY_PATH).'mail.lib.inc.php';
$course_id = api_get_course_int_id();
$session_id = api_get_session_id();

Loading…
Cancel
Save