chamilo/chamilo-lms

View on GitHub
public/main/inc/lib/search/search_widget.php

Summary

Maintainability
A
0 mins
Test Coverage

The function search_widget_normal_form() has an NPath complexity of 576. The configured NPath complexity threshold is 200.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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

The function search_widget_prefilter_form() has an NPath complexity of 240. The configured NPath complexity threshold is 200.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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

The function search_widget_show() has an NPath complexity of 567. The configured NPath complexity threshold is 200.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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

Avoid using undefined variables such as '$prefix' which will lead to PHP notices.
Open

            $form .= '<label class="sf-select-multiple-title" for="sf_'.$prefix.'[]">'.$icons_for_search_terms[$prefix].' '.$sf_value['name'].'</label><br />';

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$prefix' which will lead to PHP notices.
Open

            $form .= '<label class="sf-select-multiple-title" for="sf_'.$prefix.'[]">'.$icons_for_search_terms[$prefix].' '.$sf_value['name'].'</label><br />';

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$icons_for_search_terms' which will lead to PHP notices.
Open

            $form .= '<label class="sf-select-multiple-title" for="sf_'.$prefix.'[]">'.$icons_for_search_terms[$prefix].' '.$sf_value['name'].'</label><br />';

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

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

        } else {
            Display::display_introduction_section(TOOL_SEARCH);
        }

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

Avoid assigning values to variables in if clauses and the like (line '339', column '16').
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

IfStatementAssignment

Since: 2.7.0

Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

Example

class Foo
{
    public function bar($flag)
    {
        if ($foo = 'bar') { // possible typo
            // ...
        }
        if ($baz = 0) { // always false
            // ...
        }
    }
}

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

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

    } else { // without cid
        // prepare specific fields names (and also get possible URL param names)
        foreach ($specific_fields as $specific_field) {
            //get Xapian terms for a specific term prefix, in ISO, apparently
            $sf_terms[$specific_field['code']] = xapian_get_all_terms(1000, $specific_field['code']);

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_widget_normal_form uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        $submit_button1 = '<button class="search" type="submit" id="submit" value="'.get_lang("Search").'" /> '.get_lang('Search').'</button>';
        $submit_button2 = '<button class="search" type="submit" value="'.get_lang('Search').'" />'.get_lang('Search').'</button>';
        $reset_button = '<button class="save"   type="submit" id="tags-clean" value="'.get_lang('Reset keywords').'" />'.get_lang('Reset keywords').'</button> ';
    }

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_widget_prefilter_form uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $form .= format_specific_fields_selects($sf_terms, $op);
        }

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

Avoid unused local variables such as '$sf_copy'.
Open

        $sf_copy = $sf_term_array;

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

Avoid unused local variables such as '$max'.
Open

    $max = count($sf_terms);

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

Avoid unused local variables such as '$thesaurus_icon'.
Open

    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

Avoid unused local variables such as '$icons_for_search_terms'.
Open

            $form .= '<label class="sf-select-multiple-title" for="sf_'.$prefix.'[]">'.$icons_for_search_terms[$prefix].' '.$sf_value['name'].'</label><br />';

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

The parameter $prefilter_prefix is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $sf_terms is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $prefilter_prefix is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $sf_terms is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $extra_select_attr is not named in camelCase.
Open

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')
{
    global $charset;
    $multiple_select = '<select '.$extra_select_attr.' title="'.$prefix.'" id="sf-'.$prefix.'" name="sf_'.$prefix.'[]">';

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $show_thesaurus is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $show_thesaurus is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $sf_term_array is not named in camelCase.
Open

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')
{
    global $charset;
    $multiple_select = '<select '.$extra_select_attr.' title="'.$prefix.'" id="sf-'.$prefix.'" name="sf_'.$prefix.'[]">';

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $sf_terms is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $show_thesaurus is not named in camelCase.
Open

function display_search_form($action, $show_thesaurus, $sf_terms, $op)
{
    $type = (!empty($_REQUEST['type']) ? htmlentities($_REQUEST['type']) : 'normal');

    switch ($type) {

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $sf_terms is not named in camelCase.
Open

function display_search_form($action, $show_thesaurus, $sf_terms, $op)
{
    $type = (!empty($_REQUEST['type']) ? htmlentities($_REQUEST['type']) : 'normal');

    switch ($type) {

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

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

    foreach ($sf_terms as $prefix => $sf_term_array) {

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

        $sf_copy = $sf_term_array;

Consider putting global function "search_widget_prefilter_form" in a static class
Open

function search_widget_prefilter_form(

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

            $and_checked = 'checked="checked"';

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

                $prefilter_prefix

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

        foreach ($specific_fields as $specific_field) {

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

    $multiple_select .= '<option value="__all__" '.$all_selected.' >-- '.$all_selected_name.' --</option>';

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

    foreach ($sf_term_array as $raw_term) {

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

function display_search_form($action, $show_thesaurus, $sf_terms, $op)

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

                $sf_terms,

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

    display_search_form($action, $show_thesaurus, $sf_terms, $op);

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

        if ($prefix == $prefilter_prefix) {

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

        $multiple_selects .= $multiple_select;

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

        $or_checked = '';

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

                            <input type="radio" class="search-operator" name="operator" value="and" '.$and_checked.'>'.api_strtoupper(get_lang('and')).'</input>

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

            $url_params[] = 'sf_'.$specific_field['code'];

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

    foreach ($url_params as $param) {

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

        $multiple_select .= '</td>';

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

    $all_selected = '';

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

    if ('Internet Explorer' == $navigator_info['name'] && '6' == $navigator_info['version']) {

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

            $all_selected = 'selected="selected"';

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

        $reset_button = '<input type="submit" id="tags-clean" value="'.get_lang('Reset keywords').'" />';

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

    foreach ($sf_term_array as $raw_term) {

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

        $html_term = htmlspecialchars($term, ENT_QUOTES, $charset);

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

                            <input type="radio" class="search-operator" name="operator" value="and" '.$and_checked.'>'.api_strtoupper(get_lang('and')).'</input>

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

        $multiple_select .= '<option value="'.$html_term.'" '.$selected.'>'.$html_term.'</option>';

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

        $form .= ' <span class="search-links-box">'.$thesaurus_icon.$advanced_options.'&nbsp;</span>

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

        $multiple_select .= '<option value="'.$html_term.'" '.$selected.'>'.$html_term.'</option>';

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

            $or_checked = 'checked="checked"';

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

        $form .= '<span class="search-links-box">'.$advanced_options.'&nbsp;</span>

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

            <div id="tags" class="tags" style="display:'.$display_thesaurus.';">

Consider putting global function "display_search_form" in a static class
Open

function display_search_form($action, $show_thesaurus, $sf_terms, $op)

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

                $show_thesaurus,

Consider putting global function "search_widget_show" in a static class
Open

function search_widget_show($action = 'index.php')

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

        foreach ($specific_fields as $specific_field) {

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

            $url_params[] = 'sf_'.$specific_field['code'];

Consider putting global function "search_widget_normal_form" in a static class
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)

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

    $show_thesaurus = false;

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

        $form .= format_specific_fields_selects($sf_terms, $op);

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

            $sf_value = array_shift($sf_value);

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

            $form .= format_one_specific_field_select($prefilter_prefix, $sf_term_array, $op, 'id="prefilter"');

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

            $form .= format_specific_fields_selects($sf_terms, $op, $prefilter_prefix);

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

        $or_checked = '';

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

                    $thesaurus_decided = true;

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

        $all_selected_name = get_lang('Any');

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

        if (!empty($sf_term_array)) {

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

            foreach ($sf_term_array as $key => $value) {

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

        $sf_value = array_shift($sf_value);

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

        $multiple_select .= '<td><label class="sf-select-multiple-title" for="sf_'.$prefix.'[]">'.$sf_value['name'].'</label><br />';

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

    return $multiple_selects;

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

    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';

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

        $submit_button1 = '<button class="search" type="submit" id="submit" value="'.get_lang("Search").'" /> '.get_lang('Search').'</button>';

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

            $or_checked = 'checked="checked"';

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

    $sf_terms,

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

        if (!is_null($prefilter_prefix)) {

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

            foreach ($sf_terms[$prefilter_prefix] as $key => $value) {

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

            unset($sf_term_array);

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

            $sf_value = array_shift($sf_value);

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

                    $temp = array_merge($obj['sf-'.$specific_field['code']], $temp);

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

            $sf_terms[$specific_field['code']] = $temp;

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

            $url_params[] = 'sf_'.$specific_field['code'];

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

            if ($thesaurus_decided) {

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

        $multiple_select .= '<option value="'.$html_term.'" '.$selected.'>'.$html_term.'</option>';

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

    $multiple_select .= '</select>';

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

            $multiple_select .= '<td><img class="sf-select-splitter" src="../img/search-big-plus.gif" alt="plus-sign-decoration"/></td>';

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

        $sf_copy = $sf_term_array;

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

        $multiple_select .= '<td><label class="sf-select-multiple-title" for="sf_'.$prefix.'[]">'.$sf_value['name'].'</label><br />';

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

        $multiple_selects .= $multiple_select;

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

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)

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

                          '.$reset_button.'

Consider putting global function "search_widget_prepare" in a static class
Open

function search_widget_prepare(&$htmlHeadXtra)

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

    $prefilter_prefix = null

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

            $sf_value = get_specific_field_list(['code' => "'$prefilter_prefix'"]);

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

    $multiple_select = '<select '.$extra_select_attr.' title="'.$prefix.'" id="sf-'.$prefix.'" name="sf_'.$prefix.'[]">';

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

        $sf_term_array = $temp;

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

            $form .= format_specific_fields_selects($sf_terms, $op, $prefilter_prefix);

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

    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')

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

            $sf_terms[$specific_field['code']] = xapian_get_all_terms(1000, $specific_field['code']);

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

    $navigator_info = api_get_navigator();

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

        $submit_button2 = '<input class="lower-submit" type="submit" value="'.get_lang('Search').'" />';

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

    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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

    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);

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

            $form .= format_specific_fields_selects($sf_terms, $op);

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

    $multiple_select .= '<option value="__all__" '.$all_selected.' >-- '.$all_selected_name.' --</option>';

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

    $max = count($sf_terms);

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

        $sf_value = array_shift($sf_value);

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

    if ('Internet Explorer' == $navigator_info['name'] && '6' == $navigator_info['version']) {

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

        $submit_button1 = '<input type="submit" id="submit" value="'.get_lang('Search').'" />';

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

    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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

        $form .= ' <span class="search-links-box">'.$thesaurus_icon.$advanced_options.'&nbsp;</span>

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

            $form .= format_one_specific_field_select($prefilter_prefix, $sf_term_array, $op, 'id="prefilter"');

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

                $show_thesaurus,

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

                $sf_terms,

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

        foreach ($specific_fields as $specific_field) {

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

            $sf_terms[$specific_field['code']] = xapian_get_all_terms(1000, $specific_field['code']);

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

            $sf_terms[$specific_field['code']] = xapian_get_all_terms(1000, $specific_field['code']);

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

    $multiple_select = '<select '.$extra_select_attr.' title="'.$prefix.'" id="sf-'.$prefix.'" name="sf_'.$prefix.'[]">';

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

        $all_selected_name = get_lang('All');

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

        $submit_button2 = '<button class="search" type="submit" value="'.get_lang('Search').'" />'.get_lang('Search').'</button>';

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

        $reset_button = '<button class="save"   type="submit" id="tags-clean" value="'.get_lang('Reset keywords').'" />'.get_lang('Reset keywords').'</button> ';

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

        $and_checked = '';

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

            $prefilter_prefix = api_get_setting('search_prefilter_prefix');

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

            $thesaurus_decided = false;

Consider putting global function "format_one_specific_field_select" in a static class
Open

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')

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

    $multiple_select .= '<option value="__all__" '.$all_selected.' >-- '.$all_selected_name.' --</option>';

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

        $multiple_select .= format_one_specific_field_select($prefix, $sf_term_array, $op, 'multiple="multiple" size="7" class="sf-select-multiple"');

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

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)

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

            '.$submit_button1.'

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

            $and_checked = 'checked="checked"';

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

    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';

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

    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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

    $specific_fields = get_specific_field_list();

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

            $sf_terms[$specific_field['code']] = $temp;

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

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')

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

                            '.$submit_button2.'

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

            foreach ($sf_terms[$prefilter_prefix] as $key => $value) {

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

            $sf_value = get_specific_field_list(['code' => "'$prefilter_prefix'"]);

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

    $sf_terms = [];

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

    $url_params = [];

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

        $course_filter = chamilo_get_boolean_query(XAPIAN_PREFIX_COURSEID.$cid);

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

        $dkterms = chamilo_query_simple_query('', 0, 1000, [$course_filter]);

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

        foreach ($specific_fields as $specific_field) {

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

                    $show_thesaurus = true;

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

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')

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

        $term = substr($raw_term, 1);

Consider putting global function "format_specific_fields_selects" in a static class
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')

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

    $multiple_selects = '';

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

        unset($sf_term_array);

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

        $sf_value = get_specific_field_list(['code' => "'$prefix'"]);

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

    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);

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

        $and_checked = '';

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

    $show_thesaurus,

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

            $sf_term_array = $temp;

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

            $form .= '<label class="sf-select-multiple-title" for="sf_'.$prefix.'[]">'.$icons_for_search_terms[$prefix].' '.$sf_value['name'].'</label><br />';

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

function display_search_form($action, $show_thesaurus, $sf_terms, $op)

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

            $url_params[] = 'sf_'.$specific_field['code'];

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

    display_search_form($action, $show_thesaurus, $sf_terms, $op);

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

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')

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

    return $multiple_select;

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

    foreach ($sf_terms as $prefix => $sf_term_array) {

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

        $multiple_select = '';

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

        $multiple_select .= format_one_specific_field_select($prefix, $sf_term_array, $op, 'multiple="multiple" size="7" class="sf-select-multiple"');

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

                            <input type="radio" class="search-operator" name="operator" value="or" '.$or_checked.'>'.api_strtoupper(get_lang('or')).'</input>

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

                <div id="tags" class="tags" style="display:'.$display_thesaurus.';">

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

            $form .= '<label class="sf-select-multiple-title" for="sf_'.$prefix.'[]">'.$icons_for_search_terms[$prefix].' '.$sf_value['name'].'</label><br />';

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

                            <input type="radio" class="search-operator" name="operator" value="or" '.$or_checked.'>'.api_strtoupper(get_lang('or')).'</input>

The variable $all_selected_name is not named in camelCase.
Open

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')
{
    global $charset;
    $multiple_select = '<select '.$extra_select_attr.' title="'.$prefix.'" id="sf-'.$prefix.'" name="sf_'.$prefix.'[]">';

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 $sf_term_array is not named in camelCase.
Open

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')
{
    global $charset;
    $multiple_select = '<select '.$extra_select_attr.' title="'.$prefix.'" id="sf-'.$prefix.'" name="sf_'.$prefix.'[]">';

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 $multiple_selects is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $display_thesaurus is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $sf_term_array is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $prefilter_prefix is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $extra_select_attr is not named in camelCase.
Open

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')
{
    global $charset;
    $multiple_select = '<select '.$extra_select_attr.' title="'.$prefix.'" id="sf-'.$prefix.'" name="sf_'.$prefix.'[]">';

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 $sf_terms is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $sf_term_array is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $sf_term_array is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $multiple_selects is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $submit_button2 is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $prefilter_prefix is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $sf_value is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $and_checked is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $sf_value is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $show_thesaurus is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $submit_button2 is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $thesaurus_icon is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $sf_value is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $or_checked is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $show_thesaurus is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $prefilter_prefix is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $sf_term_array is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $multiple_select is not named in camelCase.
Open

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')
{
    global $charset;
    $multiple_select = '<select '.$extra_select_attr.' title="'.$prefix.'" id="sf-'.$prefix.'" name="sf_'.$prefix.'[]">';

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 $html_term is not named in camelCase.
Open

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')
{
    global $charset;
    $multiple_select = '<select '.$extra_select_attr.' title="'.$prefix.'" id="sf-'.$prefix.'" name="sf_'.$prefix.'[]">';

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 $submit_button1 is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $sf_terms is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $and_checked is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $advanced_options is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $all_selected is not named in camelCase.
Open

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')
{
    global $charset;
    $multiple_select = '<select '.$extra_select_attr.' title="'.$prefix.'" id="sf-'.$prefix.'" name="sf_'.$prefix.'[]">';

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 $navigator_info is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $reset_button is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $submit_button1 is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $multiple_select is not named in camelCase.
Open

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')
{
    global $charset;
    $multiple_select = '<select '.$extra_select_attr.' title="'.$prefix.'" id="sf-'.$prefix.'" name="sf_'.$prefix.'[]">';

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 $sf_term_array is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $multiple_select is not named in camelCase.
Open

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')
{
    global $charset;
    $multiple_select = '<select '.$extra_select_attr.' title="'.$prefix.'" id="sf-'.$prefix.'" name="sf_'.$prefix.'[]">';

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 $sf_copy is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $sf_value is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $multiple_select is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $sf_value is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $display_thesaurus is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $reset_button is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $submit_button1 is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $and_checked is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $advanced_options is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $display_thesaurus is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $url_params is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $show_thesaurus is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $sf_value is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $prefilter_prefix is not named in camelCase.
Open

function display_search_form($action, $show_thesaurus, $sf_terms, $op)
{
    $type = (!empty($_REQUEST['type']) ? htmlentities($_REQUEST['type']) : 'normal');

    switch ($type) {

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 $sf_terms is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $url_params is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $sf_terms is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $raw_term is not named in camelCase.
Open

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')
{
    global $charset;
    $multiple_select = '<select '.$extra_select_attr.' title="'.$prefix.'" id="sf-'.$prefix.'" name="sf_'.$prefix.'[]">';

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 $multiple_select is not named in camelCase.
Open

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')
{
    global $charset;
    $multiple_select = '<select '.$extra_select_attr.' title="'.$prefix.'" id="sf-'.$prefix.'" name="sf_'.$prefix.'[]">';

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 $advanced_options is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $prefilter_prefix is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $all_selected_name is not named in camelCase.
Open

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')
{
    global $charset;
    $multiple_select = '<select '.$extra_select_attr.' title="'.$prefix.'" id="sf-'.$prefix.'" name="sf_'.$prefix.'[]">';

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 $multiple_select is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $multiple_select is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $multiple_select is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $advanced_options is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $submit_button2 is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $sf_term_array is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $sf_terms is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $or_checked is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $specific_fields is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $specific_field is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $all_selected_name is not named in camelCase.
Open

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')
{
    global $charset;
    $multiple_select = '<select '.$extra_select_attr.' title="'.$prefix.'" id="sf-'.$prefix.'" name="sf_'.$prefix.'[]">';

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 $all_selected is not named in camelCase.
Open

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')
{
    global $charset;
    $multiple_select = '<select '.$extra_select_attr.' title="'.$prefix.'" id="sf-'.$prefix.'" name="sf_'.$prefix.'[]">';

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 $reset_button is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $sf_terms is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $prefilter_prefix is not named in camelCase.
Open

function display_search_form($action, $show_thesaurus, $sf_terms, $op)
{
    $type = (!empty($_REQUEST['type']) ? htmlentities($_REQUEST['type']) : 'normal');

    switch ($type) {

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 $show_thesaurus is not named in camelCase.
Open

function display_search_form($action, $show_thesaurus, $sf_terms, $op)
{
    $type = (!empty($_REQUEST['type']) ? htmlentities($_REQUEST['type']) : 'normal');

    switch ($type) {

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 $sf_terms is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $show_thesaurus is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $all_selected is not named in camelCase.
Open

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')
{
    global $charset;
    $multiple_select = '<select '.$extra_select_attr.' title="'.$prefix.'" id="sf-'.$prefix.'" name="sf_'.$prefix.'[]">';

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 $html_term is not named in camelCase.
Open

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')
{
    global $charset;
    $multiple_select = '<select '.$extra_select_attr.' title="'.$prefix.'" id="sf-'.$prefix.'" name="sf_'.$prefix.'[]">';

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 $multiple_select is not named in camelCase.
Open

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')
{
    global $charset;
    $multiple_select = '<select '.$extra_select_attr.' title="'.$prefix.'" id="sf-'.$prefix.'" name="sf_'.$prefix.'[]">';

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 $sf_term_array is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $prefilter_prefix is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $sf_term_array is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $multiple_select is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $sf_term_array is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $multiple_select is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $navigator_info is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $navigator_info is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $or_checked is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $display_thesaurus is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $prefilter_prefix is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $and_checked is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $raw_term is not named in camelCase.
Open

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')
{
    global $charset;
    $multiple_select = '<select '.$extra_select_attr.' title="'.$prefix.'" id="sf-'.$prefix.'" name="sf_'.$prefix.'[]">';

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 $sf_terms is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $thesaurus_icon is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $sf_terms is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $icons_for_search_terms is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $or_checked is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $sf_value is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $thesaurus_icon is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $or_checked is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $and_checked is not named in camelCase.
Open

function search_widget_normal_form($action, $show_thesaurus, $sf_terms, $op)
{
    $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('Advanced search options'), ['id' => 'thesaurus-icon']);
    $advanced_options = '<a id="tags-toggle" href="#">'.get_lang('Advanced search options').'</a>';
    $display_thesaurus = (true == $show_thesaurus ? 'block' : 'none');

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 $show_thesaurus is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $html_term is not named in camelCase.
Open

function format_one_specific_field_select($prefix, $sf_term_array, $op, $extra_select_attr = 'size="7" class="sf-select-multiple"')
{
    global $charset;
    $multiple_select = '<select '.$extra_select_attr.' title="'.$prefix.'" id="sf-'.$prefix.'" name="sf_'.$prefix.'[]">';

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 $and_checked is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $or_checked is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $show_thesaurus is not named in camelCase.
Open

function display_search_form($action, $show_thesaurus, $sf_terms, $op)
{
    $type = (!empty($_REQUEST['type']) ? htmlentities($_REQUEST['type']) : 'normal');

    switch ($type) {

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 $sf_terms is not named in camelCase.
Open

function display_search_form($action, $show_thesaurus, $sf_terms, $op)
{
    $type = (!empty($_REQUEST['type']) ? htmlentities($_REQUEST['type']) : 'normal');

    switch ($type) {

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 $course_filter is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $specific_fields is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $thesaurus_decided is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $specific_field is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $specific_field is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $url_params is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $thesaurus_decided is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $sf_term_array is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $multiple_selects is not named in camelCase.
Open

function format_specific_fields_selects($sf_terms, $op, $prefilter_prefix = '')
{
    // Process each prefix type term
    $i = 0;
    $max = count($sf_terms);

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 $sf_value is not named in camelCase.
Open

function search_widget_prefilter_form(
    $action,
    $show_thesaurus,
    $sf_terms,
    $op,

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 $specific_fields is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $specific_field is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $sf_terms is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $sf_terms is not named in camelCase.
Open

function display_search_form($action, $show_thesaurus, $sf_terms, $op)
{
    $type = (!empty($_REQUEST['type']) ? htmlentities($_REQUEST['type']) : 'normal');

    switch ($type) {

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 $course_filter is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $specific_field is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $specific_field is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $thesaurus_decided is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $specific_field is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $specific_field is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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 $url_params is not named in camelCase.
Open

function search_widget_show($action = 'index.php')
{
    require_once api_get_path(LIBRARY_PATH).'search/ChamiloQuery.php';
    // TODO: load images dinamically when they're avalaible from specific field ui to add
    $groupId = api_get_group_id();

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