chamilo/chamilo-lms

View on GitHub
public/main/survey/create_new_survey.php

Summary

Maintainability
A
0 mins
Test Coverage

Variable "_course" is not in valid camel caps format
Open

    $defaults['survey_language'] = $_course['language'];

Variable "form_fields" is not in valid camel caps format
Open

                $form_fields = explode('@', $survey_data['form_fields']);

Variable "_course" is not in valid camel caps format
Open

$_course = api_get_course_info();

Variable "survey_id" is not in valid camel caps format
Open

    $defaults['survey_id'] = $survey_id;

Variable "link_info" is not in valid camel caps format
Open

        $defaults['category_id'] = $link_info['category_id'];

Variable "gradebook_link_id" is not in valid camel caps format
Open

        $sql = "SELECT weight FROM $table_gradebook_link WHERE id = $gradebook_link_id";

Variable "survey_data" is not in valid camel caps format
Open

        if (1 == $survey_data['show_form_profile']) {

Variable "this_section" is not in valid camel caps format
Open

$this_section = SECTION_COURSES;

Variable "tool_name" is not in valid camel caps format
Open

$form->addElement('header', $tool_name);

Variable "survey_id" is not in valid camel caps format
Open

if ('edit' === $action && isset($survey_id) && is_numeric($survey_id)) {

Variable "survey_id" is not in valid camel caps format
Open

    $groupData = $extraFieldValue->get_values_by_handler_and_field_variable($survey_id, 'group_id');

Variable "input_name_list" is not in valid camel caps format
Open

                    $input_name_list .= 'profile_'.$key.',';

Variable "table_gradebook_link" is not in valid camel caps format
Open

$table_gradebook_link = Database::get_main_table(TABLE_MAIN_GRADEBOOK_LINK);

Variable "survey_id" is not in valid camel caps format
Open

if ('edit' === $action && isset($survey_id) && is_numeric($survey_id)) {

Variable "survey_id" is not in valid camel caps format
Open

    api_get_self().'?action='.$action.'&survey_id='.$survey_id.'&'.api_get_cidreq()

Variable "field_list" is not in valid camel caps format
Open

        if (is_array($field_list)) {

Variable "survey_data" is not in valid camel caps format
Open

            if ($survey_data['form_fields']) {

Variable "gradebook_link_type" is not in valid camel caps format
Open

$gradebook_link_type = 8;

Variable "gradebook_link_id" is not in valid camel caps format
Open

            $defaults['survey_qualify_gradebook'] = $gradebook_link_id;

Variable "survey_data" is not in valid camel caps format
Open

$survey_data = SurveyManager::get_survey($survey_id);

Variable "survey_id" is not in valid camel caps format
Open

        'url' => api_get_path(WEB_CODE_PATH).'survey/survey.php?survey_id='.$survey_id.'&'.api_get_cidreq(),

Variable "link_info" is not in valid camel caps format
Open

    if ($link_info) {

Variable "survey_data" is not in valid camel caps format
Open

    if (0 == $survey_data['anonymous']) {

Variable "session_id" is not in valid camel caps format
Open

        $session_id

Variable "gradebook_link_id" is not in valid camel caps format
Open

        $gradebook_link_id = $link_info['id'];

Variable "gradebook_link_id" is not in valid camel caps format
Open

        $gradebook_link_id = (int) $gradebook_link_id;

Variable "survey_id" is not in valid camel caps format
Open

$survey_data = SurveyManager::get_survey($survey_id);

Variable "gradebook_link_id" is not in valid camel caps format
Open

$gradebook_link_id = null;

Variable "survey_data" is not in valid camel caps format
Open

    $defaults['anonymous'] = $survey_data['anonymous'];

Variable "survey_id" is not in valid camel caps format
Open

if ('edit' === $action && isset($survey_id) && is_numeric($survey_id)) {

Variable "field_list" is not in valid camel caps format
Open

        $field_list = SurveyUtil::make_field_list();

Variable "tool_name" is not in valid camel caps format
Open

    $tool_name = get_lang('Create survey');

Variable "link_info" is not in valid camel caps format
Open

    $link_info = GradebookUtils::isResourceInCourseGradebook(

Variable "input_name_list" is not in valid camel caps format
Open

$input_name_list = null;

Variable "survey_id" is not in valid camel caps format
Open

if ('edit' === $action && !empty($survey_id)) {

Variable "survey_id" is not in valid camel caps format
Open

$survey_id = isset($_GET['survey_id']) ? (int) $_GET['survey_id'] : null;

Variable "survey_id" is not in valid camel caps format
Open

if ('edit' === $action && isset($survey_id) && is_numeric($survey_id)) {

Variable "link_info" is not in valid camel caps format
Open

        $gradebook_link_id = $link_info['id'];

Variable "form_fields" is not in valid camel caps format
Open

                foreach ($form_fields as &$field) {

Variable "session_id" is not in valid camel caps format
Open

$session_id = api_get_session_id();

Variable "tool_name" is not in valid camel caps format
Open

    $tool_name = get_lang('Edit survey');

Variable "survey_id" is not in valid camel caps format
Open

        $survey_id,

Variable "gradebook_link_id" is not in valid camel caps format
Open

        $gradebook_link_id = (int) $gradebook_link_id;

Variable "survey_data" is not in valid camel caps format
Open

$urlname = isset($survey_data['title']) ? strip_tags($survey_data['title']) : null;

Variable "survey_data" is not in valid camel caps format
Open

$urlname = isset($survey_data['title']) ? strip_tags($survey_data['title']) : null;

Variable "gradebook_link_type" is not in valid camel caps format
Open

        $gradebook_link_type,

Variable "table_gradebook_link" is not in valid camel caps format
Open

        $sql = "SELECT weight FROM $table_gradebook_link WHERE id = $gradebook_link_id";

Variable "input_name_list" is not in valid camel caps format
Open

            $form->addElement('hidden', 'input_name_list', $input_name_list);

Variable "course_id" is not in valid camel caps format
Open

$course_id = api_get_course_id();

Variable "survey_id" is not in valid camel caps format
Open

if ('edit' === $action && is_numeric($survey_id)) {

Variable "survey_data" is not in valid camel caps format
Open

    $defaults = $survey_data;

Variable "survey_id" is not in valid camel caps format
Open

$extraField->addElements($form, $survey_id, ['group_id']);

Variable "field_list" is not in valid camel caps format
Open

            foreach ($field_list as $key => &$field) {

Variable "gradebook_link_id" is not in valid camel caps format
Open

    $form->addHtml('<div id="gradebook_options"'.($gradebook_link_id ? '' : ' style="display:none"').'>');

Variable "survey_data" is not in valid camel caps format
Open

                $form_fields = explode('@', $survey_data['form_fields']);

Variable "tool_name" is not in valid camel caps format
Open

    Display::display_header($tool_name);

Variable "field_value" is not in valid camel caps format
Open

                        $defaults[$field_value[0]] = $field_value[1];

Variable "field_value" is not in valid camel caps format
Open

                    $field_value = explode(':', $field);

Variable "field_value" is not in valid camel caps format
Open

                        $defaults[$field_value[0]] = $field_value[1];

Variable "field_value" is not in valid camel caps format
Open

                    if ('' != $field_value[0] && '' != $field_value[1]) {

Variable "survey_id" is not in valid camel caps format
Open

$skillList = SkillModel::addSkillsToForm($form, ITEM_TYPE_SURVEY, $survey_id);

Variable "field_value" is not in valid camel caps format
Open

                    if ('' != $field_value[0] && '' != $field_value[1]) {

There are no issues that match your filters.

Category
Status