chamilo/chamilo-lms

View on GitHub
public/main/user/add_users_to_session.php

Summary

Maintainability
A
0 mins
Test Coverage

The function search_users() has an NPath complexity of 5762. The configured NPath complexity threshold is 200.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

NPathComplexity

Since: 0.1

The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

Example

class Foo {
    function bar() {
        // lots of complicated code
    }
}

Source https://phpmd.org/rules/codesize.html#npathcomplexity

Missing class import via use statement (line '77', column '31').
Open

        $xajax_response = new xajaxResponse();

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

The method search_users uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                    } else {
                        $return .= '...<br />';
                    }

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

The method search_users uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $return .= '<select id="origin_users" name="nosessionUsersList[]" multiple="multiple" size="15" style="width:360px;">';
                while ($user = Database::fetch_array($rs)) {
                    $person_name = api_get_person_name($user['firstname'], $user['lastname']);
                    $return .= '<option value="'.$user['user_id'].'">'.$person_name.' ('.$user['username'].')</option>';

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

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

$this_section = SECTION_PLATFORM_ADMIN;

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

$id_session = (int) $_GET['id_session'];

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

    $tbl_course = Database::get_main_table(TABLE_MAIN_COURSE);

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

                    $sql = 'SELECT user_id FROM '.$tbl_session_rel_user.'

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

                            user.status<>6 '.$cond_user_id.

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

                if (-1 != $access_url_id) {

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

                                    LEFT OUTER JOIN '.$tbl_session_rel_user.' s

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

        document.formulaire.add_type.value = \''.$add_type.'\';

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

    if ($ajax_search) {

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

        $use_extra_fields = false;

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

        foreach ($extra_field_list as $extra_field) {

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

        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

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

                if (!empty($id_session)) {

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

                                    INNER JOIN '.$tbl_user_rel_access_url.' url_user

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

                                        access_url_id = '.$access_url_id.' AND

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

                    $person_name = api_get_person_name($user['firstname'], $user['lastname']);

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

                $result_list = [];

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

        'url' => "resume_session.php?id_session=".$id_session,

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

    $tbl_user = Database::get_main_table(TABLE_MAIN_USER);

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

    $tool_name = get_lang('Subscribe users to this session');

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

        $add_type = Security::remove_XSS($_REQUEST['add_type']);

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

    $new_field_list = [];

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

                    'name' => $extra_field[3],

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

                        $return .= '<a href="javascript: void(0);" onclick="javascript: add_user_to_session(\''.$user['user_id'].'\',\''.$person_name.' ('.$user['username'].')'.'\')">'.$person_name.' ('.$user['username'].')</a><br />';

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

    $session_info = SessionManager::fetch($id_session);

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

                            $tbl_session_rel_user.session_id = ".intval($id_session)."

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

        if (is_array($extra_field_list)) {

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

            if (is_array($new_field_list) && count($new_field_list) > 0) {

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

SessionManager::protect_teacher_session_edit($id_session);

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

        global $id_session;

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

        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);

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

                                    $order_clause.

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

    $UserList = $SessionList = [];

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

        if (!is_array($UserList)) {

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

            SessionManager::subscribeUsersToSession($id_session, $UserList, null, true);

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

            SessionManager::subscribeUsersToSession($id_session, $UserList, null, true);

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

                        INNER JOIN $tbl_session_rel_user

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

                            $use_extra_fields = true;

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

    $tbl_session = Database::get_main_table(TABLE_MAIN_SESSION);

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

        foreach ($extra_field_list as $extra_field) {

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

            $cond_user_id = '';

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

                            FROM '.$tbl_user.' user

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

                            $order_clause;

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

        $form_sent = $_POST['form_sent'];

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

                    $tbl_session_rel_user.session_id = ".intval($id_session)."

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

                WHERE u.active <> ".USER_SOFT_DELETED." AND u.status <> ".DRH." AND u.status<>6 $order_clause";

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

            if (-1 != $access_url_id) {

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

                        WHERE u.active <> ".USER_SOFT_DELETED." AND access_url_id = $access_url_id AND u.status<>".DRH." AND u.status<>6

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

                    $varname = 'field_'.$new_field['variable'];

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

                        $cond_user_id = ' AND user.user_id NOT IN('.implode(",", $user_ids).')';

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

                                $order_clause.

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

                            FROM '.$tbl_user.' user

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

                            LEFT OUTER JOIN '.$tbl_session_rel_user.' s ON (s.user_id = user.user_id)

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

                $access_url_id = api_get_current_access_url_id();

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

                                    '.(api_sort_by_first_name() ? 'firstname' : 'lastname').' LIKE "'.$needle.'%" AND user.status<>'.DRH.' AND user.status<>6 '.$cond_user_id.

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

                                    FROM '.$tbl_user.' user

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

    Display::display_header($tool_name);

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

    $ajax_search = 'unique' === $add_type ? true : false;

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

                INNER JOIN $tbl_session_rel_user

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

                            $tbl_session_rel_user.session_id = ".intval($id_session)."

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

                foreach ($new_field_list as $new_field) {

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

    if (is_array($extra_field_list)) {

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

            if (1 == $extra_field[8] && 4 == $extra_field[2]) {

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

                            FROM '.$tbl_user.' user

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

                                    $order_clause;

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

                $xajax_response->addAssign('ajax_list_users_single', 'innerHTML', api_utf8_encode($return));

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

                    $return .= '<option value="'.$user['user_id'].'">'.$person_name.' ('.$user['username'].')</option>';

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

    $UserList = $SessionList = [];

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

            $UserList = [];

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

            header('Location: resume_session.php?id_session='.$id_session);

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

                    $tbl_session_rel_user.session_id = ".intval($id_session)."

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

            if (is_array($new_field_list) && count($new_field_list) > 0) {

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

                    $user_ids = [];

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

                                    FROM '.$tbl_user.' user

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

    $order_clause = api_sort_by_first_name() ? ' ORDER BY firstname, lastname, username' : ' ORDER BY lastname, firstname, username';

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

                            $tbl_session_rel_user.relation_type = ".Session::STUDENT." AND

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

            $final_result = [];

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

    $add_type = 'unique';

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

                            $user_ids[] = (int) $row[0];

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

                    if (count($user_ids) > 0) {

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

                                    INNER JOIN '.$tbl_user_rel_access_url.' url_user

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

                        $person_name = api_get_person_name($user['firstname'], $user['lastname']);

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

            $access_url_id = api_get_current_access_url_id();

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

                    'data' => $extra_field[9],

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

        $xajax_response = new xajaxResponse();

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

                    $id_session = intval($id_session);

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

                        $return .= '<a href="javascript: void(0);" onclick="javascript: add_user_to_session(\''.$user['user_id'].'\',\''.$person_name.' ('.$user['username'].')'.'\')">'.$person_name.' ('.$user['username'].')</a><br />';

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

    $ajax_search = 'unique' === $add_type ? true : false;

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

                FROM $tbl_user u

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

                            $tbl_session_rel_user.user_id = u.id AND

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

                        INNER JOIN $tbl_user_rel_access_url url_user

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

                    if (UserManager::is_extra_field_available($new_field['variable'])) {

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

$session = api_get_session_entity($id_session);

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

                    $id_session = intval($id_session);

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

                                    WHERE user.active <> '.USER_SOFT_DELETED.' AND access_url_id = '.$access_url_id.' AND

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

                    $order_clause";

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

                            WHERE session_id ="'.$id_session.'" AND relation_type = '.Session::STUDENT.' ';

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

                                user.status <> 6 '.$cond_user_id.

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

                                    FROM '.$tbl_user.' user

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

                                        access_url_id = '.$access_url_id.' AND

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

                            $order_clause;

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

        $UserList = $_POST['sessionUsersList'];

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

                            $extra_field_result[] = UserManager::get_extra_user_data_by_value(

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

        if ($use_extra_fields) {

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

                $new_field_list[] = [

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

                $xajax_response->addAssign('ajax_list_users_multiple', 'innerHTML', api_utf8_encode($return));

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

        return $xajax_response;

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

    $form_sent = 0;

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

                        FROM $tbl_user u

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

            if (count($extra_field_result) > 1) {

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

    $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

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

                    'variable' => $extra_field[1],

Missing function doc comment
Open

    function search_users($needle, $type)

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

            $order_clause = api_sort_by_first_name() ? ' ORDER BY firstname, lastname, username' : ' ORDER BY lastname, firstname, username';

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

                        $cond_user_id = ' AND user.user_id NOT IN('.implode(",", $user_ids).')';

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

                                        user.status<>6 '.$cond_user_id.

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

                    $tbl_session_rel_user.user_id = u.id AND

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

                    $tbl_session_rel_user.relation_type = ".Session::STUDENT." AND

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

                                $new_field['variable'],

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

$extra_field_list = [];

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

            if (1 == $extra_field[8] && 4 == $extra_field[2]) {

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

                            $order_clause;

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

                $tbl_user_rel_access_url = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER);

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

        if (1 == $form_sent) {

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

            $tbl_user_rel_access_url = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER);

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

    $extra_field_list = UserManager::get_extra_fields();

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

                                    INNER JOIN '.$tbl_user_rel_access_url.' url_user

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

    $session_info = SessionManager::fetch($id_session);

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

                foreach ($new_field_list as $new_field) {

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

                $final_result = $extra_field_result[0];

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

            $where_filter = '';

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

                if (is_array($final_result) && count($final_result) > 0) {

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

            $access_url_id = api_get_current_access_url_id();

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

                            $tbl_session_rel_user.relation_type = ".Session::STUDENT."

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

                LEFT JOIN $tbl_session_rel_user

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

                    $tbl_session_rel_user.user_id = u.id AND

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

                    echo $new_field['name'];

Closing brace indented incorrectly; expected 12 spaces, found 4
Open

    } ?>

Closing brace indented incorrectly; expected 21 spaces, found 22
Open

                      } ?>><?php echo api_get_person_name($enreg['fn'], $enreg['ln']).' ('.$enreg['un'].')'; ?></option>

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

                $final_result = $extra_field_result[0];

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

                    $tbl_session_rel_user.session_id = '$id_session' AND

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

                            $tbl_session_rel_user.user_id = u.id AND

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

                foreach ($new_field_list as $new_field) {

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

                    $tbl_session_rel_user.session_id = '$id_session' AND

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

                        FROM $tbl_user u

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

                        WHERE access_url_id = $access_url_id  $where_filter AND u.status<>".DRH." AND u.status<>6 AND u.active <> ".USER_SOFT_DELETED."

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

                WHERE u.active <> ".USER_SOFT_DELETED." AND u.status <> ".DRH." AND u.status<>6 $order_clause";

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

            $tbl_user_rel_access_url = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER);

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

        <?php echo $link_add_type_unique; ?>&nbsp;|&nbsp;<?php echo $link_add_type_multiple; ?>&nbsp;|&nbsp;<?php echo $link_add_group; ?>

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

                if ($ajax_search) {

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

                            $extra_field_result[$i + 1]

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

                for ($i = 0; $i < count($extra_field_result) - 1; $i++) {

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

                    LEFT JOIN $tbl_session_rel_user

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

                    $where_filter = " AND u.id IN  ('".implode("','", $final_result)."') ";

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

                    $where_filter = " WHERE u.id IN  ('".implode("','", $final_result)."') ";

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

                    $where_filter AND u.status<>".DRH." AND u.status<>6 AND u.active <> ".USER_SOFT_DELETED."

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

                    FROM $tbl_user u

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

            $access_url_id = api_get_current_access_url_id();

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

                    $order_clause";

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

        <?php echo $link_add_type_unique; ?>&nbsp;|&nbsp;<?php echo $link_add_type_multiple; ?>&nbsp;|&nbsp;<?php echo $link_add_group; ?>

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

            if (-1 != $access_url_id) {

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

                        INNER JOIN $tbl_user_rel_access_url url_user ON (url_user.user_id=u.user_id)

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

        if (is_array($extra_field_list)) {

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

        <?php echo $link_add_type_unique; ?>&nbsp;|&nbsp;<?php echo $link_add_type_multiple; ?>&nbsp;|&nbsp;<?php echo $link_add_group; ?>

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

                    if (is_array($extra_field_result[$i + 1])) {

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

                            $extra_field_result[$i],

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

                    $tbl_session_rel_user.session_id = '$id_session' AND

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

                        $order_clause";

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

            if ($user['session_id'] != $id_session) {

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

                    $tbl_session_rel_user.relation_type = ".Session::STUDENT."

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

                            $tbl_session_rel_user.session_id = '$id_session' AND

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

    if ('multiple' === $add_type) {

Closing brace indented incorrectly; expected 9 spaces, found 12
Open

            } ?>" style="margin:0px;" <?php if ($ajax_search) {

Closing brace indented incorrectly; expected 0 spaces, found 4
Open

    }

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

                        LEFT JOIN $tbl_session_rel_user

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

        $link_add_type_multiple = '<a href="'.api_get_self().'?id_session='.$id_session.'&add='.Security::remove_XSS($_GET['add']).'&add_type=multiple">'.

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

            if (is_array($new_field_list) && count($new_field_list) > 0) {

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

                    ON $tbl_session_rel_user.user_id = u.id AND

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

                            $tbl_session_rel_user.relation_type = ".Session::STUDENT."

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

            if ($user['session_id'] == $id_session) {

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

                        $final_result = array_intersect(

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

                    $where_filter = " WHERE u.id IN  ('".implode("','", $final_result)."') ";

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

            if (-1 != $access_url_id) {

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

                            $tbl_session_rel_user.session_id = '$id_session' AND

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

                        INNER JOIN $tbl_user_rel_access_url url_user ON (url_user.user_id=u.user_id)

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

                        WHERE access_url_id = $access_url_id  $where_filter AND u.status<>".DRH." AND u.status<>6 AND u.active <> ".USER_SOFT_DELETED."

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

            if (is_array($new_field_list) && count($new_field_list) > 0) {

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

                    $varname = 'field_'.$new_field['variable'];

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

                if (is_array($final_result) && count($final_result) > 0) {

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

                    FROM $tbl_user u

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

                    LEFT JOIN $tbl_session_rel_user

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

                    $tbl_session_rel_user.relation_type = ".Session::STUDENT."

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

                FROM $tbl_user u

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

                        FROM $tbl_user u

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

    if ('multiple' === $add_type) {

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

                      <option value="<?php echo $uid; ?>" <?php if (in_array($uid, $UserList)) {

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

        //xhr_object.open("GET", "loadUsersInSelect.ajax.php?id_session=<?php echo $id_session; ?>&letter="+select.options[select.selectedIndex].text, false);

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

                if (is_array($final_result) && count($final_result) > 0) {

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

                            $tbl_session_rel_user.session_id = '$id_session' AND

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

    $link_add_group = '<a href="usergroups.php">'.

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

          action="<?php echo api_get_self(); ?>?page=<?php echo $page; ?>&id_session=<?php echo $id_session; ?><?php if (!empty($_GET['add'])) {

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

    <?php echo '<legend>'.$tool_name.' ('.$session->getTitle().') </legend>'; ?>

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

                foreach ($new_field_list as $new_field) {

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

                if (!('multiple' == $add_type)) {

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

                    $order_clause";

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

            $tbl_user_rel_access_url = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER);

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

                            $tbl_session_rel_user.user_id = u.id AND

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

        $link_add_type_unique = Display::getMdiIcon('note-outline', 'ch-tool-icon', null, ICON_SIZE_SMALL).get_lang('Single registration');

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

                if (is_array($final_result) && count($final_result) > 0) {

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

                    $where_filter = " AND u.id = -1";

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

        if ($use_extra_fields) {

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

                    $order_clause";

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

                        LEFT JOIN $tbl_session_rel_user

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

        $link_add_type_multiple = Display::getMdiIcon('note-multiple-outline', 'ch-tool-icon', null, ICON_SIZE_SMALL).get_lang('Multiple registration');

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

            <?php if ('multiple' == $add_type) {

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

                    $where_filter = " AND u.id IN  ('".implode("','", $final_result)."') ";

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

                    ON $tbl_session_rel_user.user_id = u.id AND

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

                    $tbl_session_rel_user.session_id = '$id_session' AND

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

                        WHERE u.active <> ".USER_SOFT_DELETED." AND access_url_id = $access_url_id AND u.status<>".DRH." AND u.status<>6

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

        $link_add_type_unique = '<a href="'.api_get_self().'?id_session='.$id_session.'&add='.Security::remove_XSS($_GET['add']).'&add_type=unique">'.

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

        $link_add_type_multiple = '<a href="'.api_get_self().'?id_session='.$id_session.'&add='.Security::remove_XSS($_GET['add']).'&add_type=multiple">'.

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

            } ?>" style="margin:0px;" <?php if ($ajax_search) {

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

                    $where_filter = " WHERE u.id = -1";

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

                    $tbl_session_rel_user.session_id = '$id_session' AND

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

                    $tbl_session_rel_user.relation_type = ".Session::STUDENT."

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

                            $tbl_session_rel_user.session_id = '$id_session' AND

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

                    $tbl_session_rel_user.session_id = '$id_session' AND

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

        $link_add_type_unique = '<a href="'.api_get_self().'?id_session='.$id_session.'&add='.Security::remove_XSS($_GET['add']).'&add_type=unique">'.

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

                    foreach ($new_field['data'] as $option) {

Line indented incorrectly; expected 20 spaces, found 18
Open

                  <?php

Line indented incorrectly; expected 20 spaces, found 18
Open

                  foreach ($nosessionUsersList as $uid => $enreg) {

Closing brace indented incorrectly; expected 12 spaces, found 4
Open

    } ?>

Line indented incorrectly; expected at least 28 spaces, found 26
Open

                          echo 'selected="selected"';

Line indented incorrectly; expected 4 spaces, found 22
Open

                      } ?>><?php echo api_get_person_name($enreg['fn'], $enreg['ln']).' ('.$enreg['un'].')'; ?></option>

Line indented incorrectly; expected at least 12 spaces, found 4
Open

    unset($sessionUsersList); ?>

Line indented incorrectly; expected 20 spaces, found 18
Open

                  } ?>

Line indented incorrectly; expected at least 16 spaces, found 4
Open

    unset($nosessionUsersList); ?>

Closing brace indented incorrectly; expected 0 spaces, found 4
Open

    }

Line indented incorrectly; expected 20 spaces, found 18
Open

                  <?php

Closing brace indented incorrectly; expected 37 spaces, found 22
Open

                      } ?>><?php echo api_get_person_name($enreg['fn'], $enreg['ln']).' ('.$enreg['un'].')'; ?></option>

Line indented incorrectly; expected 12 spaces, found 16
Open

                } else {

Closing brace indented incorrectly; expected 18 spaces, found 12
Open

            } ?>" style="margin:0px;" <?php if ($ajax_search) {

Line indented incorrectly; expected 20 spaces, found 18
Open

                  <?php

Line indented incorrectly; expected 20 spaces, found 18
Open

                  <?php

Line indented incorrectly; expected 0 spaces, found 12
Open

            } ?>>

Line indented incorrectly; expected 12 spaces, found 16
Open

                } ?>

Line indented incorrectly; expected 12 spaces, found 16
Open

                if ($ajax_search) {

Line indented incorrectly; expected 0 spaces, found 12
Open

            } ?>" style="margin:0px;" <?php if ($ajax_search) {

Line indented incorrectly; expected 0 spaces, found 4
Open

    } ?>

Line indented incorrectly; expected 0 spaces, found 4
Open

    }

Line indented incorrectly; expected 24 spaces, found 22
Open

                      ?>

The variable $cond_user_id is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $id_session is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tbl_user is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tbl_user is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $person_name is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $person_name is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $id_session is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $cond_user_id is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tbl_session_rel_user is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $cond_user_id is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $access_url_id is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $person_name is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tbl_user is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tbl_user_rel_access_url is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $access_url_id is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $xajax_response is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $order_clause is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $id_session is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $person_name is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tbl_user is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $order_clause is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tbl_session_rel_user is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $cond_user_id is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $order_clause is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tbl_user_rel_access_url is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $access_url_id is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tbl_session_rel_user is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $xajax_response is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $order_clause is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $xajax_response is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tbl_user is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $order_clause is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $cond_user_id is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $id_session is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tbl_user is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tbl_user is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $cond_user_id is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_ids is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_ids is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_ids is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tbl_user_rel_access_url is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tbl_user_rel_access_url is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $access_url_id is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $person_name is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_ids is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $id_session is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $order_clause is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $order_clause is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $access_url_id is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tbl_session_rel_user is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $xajax_response is not named in camelCase.
Open

    function search_users($needle, $type)
    {
        global $id_session;
        $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
        $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

There are no issues that match your filters.

Category
Status