Rename survey_manager with SurveyManager

1.10.x
Julio Montoya 10 years ago
parent 01fd816720
commit 7fbf1d9953
  1. 2
      main/inc/ajax/model.ajax.php
  2. 2
      main/inc/lib/display.lib.php
  3. 2
      main/inc/lib/myspace.lib.php
  4. 6
      main/inc/lib/sessionmanager.lib.php
  5. 4
      main/inc/lib/tracking.lib.php
  6. 2
      main/inc/lib/usermanager.lib.php
  7. 4
      main/mySpace/myStudents.php

@ -1033,7 +1033,7 @@ switch ($action) {
'lastname',
);
$questions = survey_manager::get_questions($surveyId, $courseId);
$questions = SurveyManager::get_questions($surveyId, $courseId);
foreach ($questions as $question_id => $question)
{

@ -1418,7 +1418,7 @@ class Display
}
// If it's a survey, make sure the user's invited. Otherwise drop it.
if ($item_property['tool'] == TOOL_SURVEY) {
$survey_info = survey_manager::get_survey($item_property['ref'], 0, $course_code);
$survey_info = SurveyManager::get_survey($item_property['ref'], 0, $course_code);
if (!empty($survey_info)) {
$invited_users = SurveyUtil::get_invited_users(
$survey_info['code'],

@ -788,7 +788,7 @@ class MySpace
get_lang('LastName'),
);
//add lessons of course
$questions = survey_manager::get_questions($surveyId, $courseId);
$questions = SurveyManager::get_questions($surveyId, $courseId);
foreach ($questions as $question) {
$columns[] = $question['question'];

@ -754,7 +754,7 @@ class SessionManager
}
//Get survey questions
$questions = survey_manager::get_questions($surveyId, $courseId);
$questions = SurveyManager::get_questions($surveyId, $courseId);
//Survey is anonymous?
$result = Database::query(sprintf("SELECT anonymous FROM $c_survey WHERE survey_id = %d", $surveyId));
@ -959,11 +959,11 @@ class SessionManager
* Surveys
*/
$survey_user_list = array();
$survey_list = survey_manager::get_surveys($course['code'], $sessionId);
$survey_list = SurveyManager::get_surveys($course['code'], $sessionId);
$surveys_total = count($survey_list);
foreach ($survey_list as $survey) {
$user_list = survey_manager::get_people_who_filled_survey(
$user_list = SurveyManager::get_people_who_filled_survey(
$survey['survey_id'],
false,
$course['real_id']

@ -6070,11 +6070,11 @@ class TrackingCourseLog
if (empty($session_id)) {
$survey_user_list = array();
$survey_list = survey_manager::get_surveys($course_code, $session_id);
$survey_list = SurveyManager::get_surveys($course_code, $session_id);
$total_surveys = count($survey_list);
foreach ($survey_list as $survey) {
$user_list = survey_manager::get_people_who_filled_survey(
$user_list = SurveyManager::get_people_who_filled_survey(
$survey['survey_id'],
false,
$course_info['real_id']

@ -466,7 +466,7 @@ class UserManager
}
// Removing survey invitation
survey_manager::delete_all_survey_invitations_by_user($user_id);
SurveyManager::delete_all_survey_invitations_by_user($user_id);
// Delete students works
$sql = "DELETE FROM $table_work WHERE user_id = $user_id AND c_id <> 0";

@ -1041,11 +1041,11 @@ if (!empty($student_id)) {
//@when using sessions we do not show the survey list
if (empty($session_id)) {
$survey_list = survey_manager::get_surveys($course_code, $session_id);
$survey_list = SurveyManager::get_surveys($course_code, $session_id);
$survey_data = array();
foreach($survey_list as $survey) {
$user_list = survey_manager::get_people_who_filled_survey($survey['survey_id'], false, $info_course['real_id']);
$user_list = SurveyManager::get_people_who_filled_survey($survey['survey_id'], false, $info_course['real_id']);
$survey_done = Display::return_icon("accept_na.png", get_lang('NoAnswer'), array(), ICON_SIZE_SMALL);
if (in_array($student_id, $user_list)) {
$survey_done = Display::return_icon("accept.png", get_lang('Answered'), array(), ICON_SIZE_SMALL);

Loading…
Cancel
Save