public/main/survey/survey.php
Variable "current_course_tool" is not in valid camel caps format Open
Open
$current_course_tool = TOOL_SURVEY;
- Exclude checks
Variable "survey_data" is not in valid camel caps format Open
Open
$survey_data = SurveyManager::get_survey($survey_id);
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Open
$tool_name .= '...';
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
WHERE c_id = '.$course_id.' AND id = \''.Database::escape_string($_POST['group_id']).'\'');
- Exclude checks
Variable "survey_data" is not in valid camel caps format Open
Open
if (!empty($survey_data['survey_version'])) {
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
api_get_path(WEB_CODE_PATH).'survey/reporting.php?'.api_get_cidreq().'&survey_id='.$survey_id
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
$urlQuestion.'&type=score&survey_id='.$survey_id
- Exclude checks
Variable "extend_rights_for_coachs" is not in valid camel caps format Open
Open
$extend_rights_for_coachs = api_get_setting('extend_rights_for_coach_on_survey');
- Exclude checks
Variable "table_survey_question" is not in valid camel caps format Open
Open
$table_survey_question = Database::get_course_table(TABLE_SURVEY_QUESTION);
- Exclude checks
Variable "table_user" is not in valid camel caps format Open
Open
$table_user = Database::get_main_table(TABLE_MAIN_USER);
- Exclude checks
Variable "survey_data" is not in valid camel caps format Open
Open
$is_survey_type_1 = 1 == $survey_data['survey_type'];
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
Database::query('INSERT INTO '.$table_survey_question_group.' (c_id, title,description,survey_id) values ('.$course_id.', \''.Database::escape_string($_POST['name']).'\',\''.Database::escape_string($_POST['description']).'\',\''.$survey_id.'\') ');
- Exclude checks
Variable "my_question_id_survey" is not in valid camel caps format Open
Open
$my_question_id_survey = isset($_GET['question_id']) ? (int) $_GET['question_id'] : null;
- Exclude checks
Variable "survey_data" is not in valid camel caps format Open
Open
if (3 != $survey_data['survey_type']) {
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
$urlQuestion.'&type=comment&survey_id='.$survey_id
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
$urlQuestion.'&type=pagebreak&survey_id='.$survey_id
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
survey_question.survey_id = $survey_id
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Open
echo '<td>'.$tool_name.'</td>';
- Exclude checks
Variable "survey_data" is not in valid camel caps format Open
Open
echo '<b>'.get_lang('Version').': '.$survey_data['survey_version'].'</b>';
- Exclude checks
Variable "survey_data" is not in valid camel caps format Open
Open
if (3 != $survey_data['survey_type']) {
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Open
$tool_name = get_lang('UniqueSelect');
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
Open
$this_section = SECTION_COURSES;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$course_id = api_get_course_int_id();
- Exclude checks
Variable "is_survey_type_1" is not in valid camel caps format Open
Open
$is_survey_type_1 = 1 == $survey_data['survey_type'];
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
$survey_actions .= SurveyUtil::getAdditionalTeacherActions($survey_id, ICON_SIZE_MEDIUM);
- Exclude checks
Variable "survey_actions" is not in valid camel caps format Open
Open
echo Display::toolbarAction('survey', [$survey_actions]);
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
$urlQuestion.'&type=percentage&survey_id='.$survey_id
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Open
$tool_name = get_lang('Multiple choice, multiple answers');
- Exclude checks
Variable "survey_data" is not in valid camel caps format Open
Open
if (3 != $survey_data['survey_type']) {
- Exclude checks
Variable "question_counter_max" is not in valid camel caps format Open
Open
if ($question_counter < $question_counter_max) {
- Exclude checks
Variable "extend_rights_for_coachs" is not in valid camel caps format Open
Open
(api_is_session_general_coach() && 'false' === $extend_rights_for_coachs)
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
if (-1 != $course_code) {
- Exclude checks
Variable "is_survey_type_1" is not in valid camel caps format Open
Open
if ($is_survey_type_1 && ('addgroup' === $action || 'deletegroup' === $action)) {
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
WHERE c_id = '.$course_id.' AND id = '.intval($_GET['gid']).' AND survey_id = '.$survey_id;
- Exclude checks
Variable "my_survey_id_survey" is not in valid camel caps format Open
Open
$my_survey_id_survey = (int) $_GET['survey_id'];
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
$survey_actions .= '<a href="'.api_get_path(WEB_CODE_PATH).'survey/survey_invite.php?'.api_get_cidreq().'&survey_id='.$survey_id.'">'.
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
$urlQuestion.'&type=selectivedisplay&survey_id='.$survey_id
- Exclude checks
Variable "table_survey_question_option" is not in valid camel caps format Open
Open
LEFT JOIN $table_survey_question_option survey_question_option
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
api_get_cidreq().'&action=moveup&survey_id='.$survey_id.'&question_id='.$questionId.'">'.
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$course_code = api_get_course_id();
- Exclude checks
Variable "survey_data" is not in valid camel caps format Open
Open
$tool_name = strip_tags($survey_data['title'], '<span>');
- Exclude checks
Variable "table_survey_question_group" is not in valid camel caps format Open
Open
Database::query('UPDATE '.$table_survey_question_group.' SET description = \''.Database::escape_string($_POST['description']).'\'
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Open
Display::display_header($tool_name, 'Survey');
- Exclude checks
Variable "question_counter" is not in valid camel caps format Open
Open
if ($question_counter < $question_counter_max) {
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Open
$tool_name = strip_tags($survey_data['title'], '<span>');
- Exclude checks
Variable "survey_data" is not in valid camel caps format Open
Open
if (api_strlen(strip_tags($survey_data['title'])) > 40) {
- Exclude checks
Variable "table_survey_question_group" is not in valid camel caps format Open
Open
Database::query('INSERT INTO '.$table_survey_question_group.' (c_id, title,description,survey_id) values ('.$course_id.', \''.Database::escape_string($_POST['name']).'\',\''.Database::escape_string($_POST['description']).'\',\''.$survey_id.'\') ');
- Exclude checks
Variable "my_survey_id_survey" is not in valid camel caps format Open
Open
$my_survey_id_survey
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
).'&action=edit&survey_id='.$survey_id.'">'.
- Exclude checks
Variable "survey_data" is not in valid camel caps format Open
Open
if (0 == $survey_data['survey_type']) {
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
$urlQuestion.'&type=multiplechoiceother&survey_id='.$survey_id
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Open
$tool_name = get_lang('Selective display');
- Exclude checks
Variable "my_question_id_survey" is not in valid camel caps format Open
Open
$my_question_id_survey,
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
$urlQuestion.'&type=multiplechoice&survey_id='.$survey_id
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
$urlQuestion.'&type=dropdown&survey_id='.$survey_id
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
$urlQuestion.'&type=personality&survey_id='.$survey_id
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
api_location(api_get_path(WEB_CODE_PATH).'survey/survey.php?survey_id='.$survey_id.'&'.api_get_cidreq());
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
api_location(api_get_path(WEB_CODE_PATH).'survey/survey.php?survey_id='.$survey_id.'&'.api_get_cidreq());
- Exclude checks
Variable "survey_actions" is not in valid camel caps format Open
Open
$survey_actions .= SurveyUtil::getAdditionalTeacherActions($survey_id, ICON_SIZE_MEDIUM);
- Exclude checks
Variable "survey_data" is not in valid camel caps format Open
Open
if (3 != $survey_data['survey_type']) {
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
$survey_data = SurveyManager::get_survey($survey_id);
- Exclude checks
Variable "survey_actions" is not in valid camel caps format Open
Open
$survey_actions .= '<a
- Exclude checks
Variable "survey_actions" is not in valid camel caps format Open
Open
$survey_actions .= '<a href="'.api_get_path(WEB_CODE_PATH).'survey/preview.php?'.api_get_cidreq().'&survey_id='.$survey_id.'">'.
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
$urlQuestion.'&type=multipleresponse&survey_id='.$survey_id
- Exclude checks
Variable "question_counter" is not in valid camel caps format Open
Open
$question_counter = 1;
- Exclude checks
Variable "question_counter_max" is not in valid camel caps format Open
Open
$question_counter_max = Database::num_rows($result);
- Exclude checks
Variable "question_counter" is not in valid camel caps format Open
Open
if ($question_counter > 1) {
- Exclude checks
Variable "table_survey" is not in valid camel caps format Open
Open
$table_survey = Database::get_course_table(TABLE_SURVEY);
- Exclude checks
Variable "table_course" is not in valid camel caps format Open
Open
$table_course = Database::get_main_table(TABLE_MAIN_COURSE);
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
WHERE c_id = '.$course_id.' AND id = '.intval($_GET['gid']).' AND survey_id = '.$survey_id;
- Exclude checks
Variable "survey_actions" is not in valid camel caps format Open
Open
$survey_actions = '';
- Exclude checks
Variable "table_survey_question" is not in valid camel caps format Open
Open
FROM $table_survey_question survey_question
- Exclude checks
Variable "question_counter" is not in valid camel caps format Open
Open
echo ' <td>'.$question_counter.'</td>';
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
api_get_cidreq().'&action=delete&survey_id='.$survey_id.'&question_id='.$questionId.'"
- Exclude checks
Variable "table_survey_question_option" is not in valid camel caps format Open
Open
$table_survey_question_option = Database::get_course_table(TABLE_SURVEY_QUESTION_OPTION);
- Exclude checks
Variable "table_survey_question_group" is not in valid camel caps format Open
Open
$sql = 'DELETE FROM '.$table_survey_question_group.'
- Exclude checks
Variable "my_question_id_survey" is not in valid camel caps format Open
Open
$result = SurveyManager::deleteQuestion($my_question_id_survey);
- Exclude checks
Variable "survey_actions" is not in valid camel caps format Open
Open
$survey_actions = '<a href="'.api_get_path(WEB_CODE_PATH).'survey/create_new_survey.php?'.api_get_cidreq(
- Exclude checks
Variable "survey_actions" is not in valid camel caps format Open
Open
$survey_actions .= Display::url(
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
$urlQuestion.'&type=open&survey_id='.$survey_id
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
$survey_id = (int) $_GET['survey_id'];
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
Database::query('INSERT INTO '.$table_survey_question_group.' (c_id, title,description,survey_id) values ('.$course_id.', \''.Database::escape_string($_POST['name']).'\',\''.Database::escape_string($_POST['description']).'\',\''.$survey_id.'\') ');
- Exclude checks
Multi-line function call not indented correctly; expected 4 spaces but found 8 Open
Open
).'&action=edit&survey_id='.$survey_id.'">'.
- Exclude checks
Variable "survey_actions" is not in valid camel caps format Open
Open
$survey_actions .= '<a href="'.api_get_path(WEB_CODE_PATH).'survey/survey_invite.php?'.api_get_cidreq().'&survey_id='.$survey_id.'">'.
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
$urlQuestion.'&type=yesno&survey_id='.$survey_id
- Exclude checks
Variable "survey_data" is not in valid camel caps format Open
Open
if (3 != $survey_data['survey_type']) {
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
'survey/question.php?'.api_get_cidreq().'&action=edit&type='.$row['type'].'&survey_id='.$survey_id.'&question_id='.$questionId.'">'.
- Exclude checks
Variable "table_survey_question_group" is not in valid camel caps format Open
Open
$table_survey_question_group = Database::get_course_table(TABLE_SURVEY_QUESTION_GROUP);
- Exclude checks
Variable "survey_data" is not in valid camel caps format Open
Open
if (3 != $survey_data['survey_type']) {
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
$survey_actions .= '<a href="'.api_get_path(WEB_CODE_PATH).'survey/preview.php?'.api_get_cidreq().'&survey_id='.$survey_id.'">'.
- Exclude checks
Variable "survey_data" is not in valid camel caps format Open
Open
if (0 == $survey_data['one_question_per_page']) {
- Exclude checks
Variable "is_survey_type_1" is not in valid camel caps format Open
Open
if ($is_survey_type_1) {
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Open
$tool_name = get_lang('Yes / No');
- Exclude checks
Variable "survey_data" is not in valid camel caps format Open
Open
if (3 != $survey_data['survey_type']) {
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
href="'.api_get_path(WEB_CODE_PATH).'survey/survey_list.php?'.api_get_cidreq().'&action=delete&survey_id='.$survey_id.'" onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang('Delete survey').'?', ENT_QUOTES)).'\')) return false;">'.
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Open
$tool_name = get_lang(api_ucfirst(Security::remove_XSS($row['type'])));
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
api_get_cidreq().'&action=copyquestion&type='.$row['type'].'&survey_id='.$survey_id.'&question_id='.$questionId.'">'.
- Exclude checks
Add a single space after each comma delimiter Open
Open
echo Display::getMdiIcon(ActionIcon::DOWN, 'ch-tool-icon-disabled', null, ICON_SIZE_SMALL,' ');
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
c_id = '.$course_id.' AND
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
survey_id = '.intval($survey_id).'
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
'<a href="'.api_get_path(WEB_CODE_PATH).'survey/survey.php?survey_id='.$survey_id.'&gid='.$row['id'].'&action=editgroup">'.
- Exclude checks
Variable "question_counter" is not in valid camel caps format Open
Open
$question_counter++;
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
'survey/survey.php?'.api_get_cidreq().'&action=movedown&survey_id='.$survey_id.'&question_id='.$questionId.'">'.
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
onclick="window.location.href = \'survey.php?survey_id='.Security::remove_XSS($survey_id).'\';" />';
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
action="'.api_get_path(WEB_CODE_PATH).'survey/survey.php?action=addgroup&survey_id='.$survey_id.'" method="post">';
- Exclude checks
Variable "table_survey_question_group" is not in valid camel caps format Open
Open
FROM '.$table_survey_question_group.'
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
href="'.api_get_path(WEB_CODE_PATH).'survey/survey.php?survey_id='.$survey_id.'&gid='.$row['id'].'&action=deletegroup"
- Exclude checks
Variable "is_survey_type_1" is not in valid camel caps format Open
Open
if ($is_survey_type_1) {
- Exclude checks
Variable "table_survey_question_group" is not in valid camel caps format Open
Open
$sql = 'SELECT title, description FROM '.$table_survey_question_group.'
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
Open
WHERE id = '.intval($_GET['gid']).' AND survey_id = '.$survey_id.'
- Exclude checks
Multi-line function call not indented correctly; expected 4 spaces but found 8 Open
Open
).'&action=edit&survey_id='.$survey_id.'">'.
- Exclude checks
No space found after comma in function call Open
Open
echo Display::getMdiIcon(ActionIcon::DOWN, 'ch-tool-icon-disabled', null, ICON_SIZE_SMALL,' ');
- Exclude checks