chamilo/chamilo-lms

View on GitHub
public/main/inc/lib/sortable_table.class.php

Summary

Maintainability
A
0 mins
Test Coverage

The method return_table() has an NPath complexity of 2592. The configured NPath complexity threshold is 200.
Open

    public function return_table()
    {
        $empty_table = false;
        $content = $this->get_table_html();
        if (0 == $this->get_total_number_of_items()) {

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 method __construct() has an NPath complexity of 51200. The configured NPath complexity threshold is 200.
Open

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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 method get_page_select_form() has an NPath complexity of 480. The configured NPath complexity threshold is 200.
Open

    public function get_page_select_form(): string
    {
        $total_number_of_items = $this->get_total_number_of_items();
        if ($total_number_of_items <= $this->default_items_per_page) {
            return '';

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 method get_additional_url_paramstring() has an NPath complexity of 388. The configured NPath complexity threshold is 200.
Open

    public function get_additional_url_paramstring()
    {
        $param_string_parts = [];
        if (is_array($this->additional_parameters) && count($this->additional_parameters) > 0) {
            foreach ($this->additional_parameters as $key => $value) {

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 method processHeaders() has an NPath complexity of 253. The configured NPath complexity threshold is 200.
Open

    public function processHeaders()
    {
        $counter = 0;
        foreach ($this->headers as $column => $columnInfo) {
            $label = $columnInfo['label'];

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 method display_simple_grid() has an NPath complexity of 2880. The configured NPath complexity threshold is 200.
Open

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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 '$params' which will lead to PHP notices.
Open

            $params['lastPagePre'] = '';

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 '$params' which will lead to PHP notices.
Open

            $params['firstPageText'] = Display::getMdiIcon('step-backward-2');

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 '$params' which will lead to PHP notices.
Open

            $params['lastPageText'] = Display::getMdiIcon('step-forward-2');

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 '$params' which will lead to PHP notices.
Open

            $params['firstPagePre'] = '';

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 '$params' which will lead to PHP notices.
Open

            $params['curPageLinkClassName'] = 'ch-pager';

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 '$params' which will lead to PHP notices.
Open

            $this->pager = &Pager::factory($params);

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 '$params' which will lead to PHP notices.
Open

            $params['excludeVars'] = $query_vars_exclude;

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 '$params' which will lead to PHP notices.
Open

            $params['currentPage'] = $this->page_nr;

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 '$params' which will lead to PHP notices.
Open

            $params['perPage'] = $this->per_page;

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 '$params' which will lead to PHP notices.
Open

            $params['urlVar'] = $this->param_prefix.'page_nr';

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 '$params' which will lead to PHP notices.
Open

            $params['nextImg'] = Display::getMdiIcon('step-forward');

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 '$params' which will lead to PHP notices.
Open

            $params['firstPagePost'] = '';

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 '$params' which will lead to PHP notices.
Open

            $params['spacesBeforeSeparator'] = '';

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 '$params' which will lead to PHP notices.
Open

            $params['mode'] = 'Sliding';

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 '$params' which will lead to PHP notices.
Open

            $params['spacesAfterSeparator'] = '';

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 '$params' which will lead to PHP notices.
Open

            $params['prevImg'] = Display::getMdiIcon('step-backward');

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 '$params' which will lead to PHP notices.
Open

            $params['totalItems'] = $this->get_total_number_of_items();

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 '$params' which will lead to PHP notices.
Open

            $params['lastPagePost'] = '';

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 '$result' which will lead to PHP notices.
Open

        $result[] = '<form method="GET" action="'.api_get_self().'" style="display:inline;">';

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 '$result' which will lead to PHP notices.
Open

        $result[] = '<select style="width: auto;" class="form-control" name="'.$this->param_prefix

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 '$result' which will lead to PHP notices.
Open

        $result[] = '<option value="'.$total_number_of_items.'" '

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 '$result' which will lead to PHP notices.
Open

        $result[] = '<button class="btn btn--success" type="submit">'.get_lang('Save').'</button>';

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 '$result' which will lead to PHP notices.
Open

        $result[] = '</noscript>';

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 '$result' which will lead to PHP notices.
Open

        $result[] = '</form>';

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 '$result' which will lead to PHP notices.
Open

            $result[] = '<option value="'.$nr.'" '.($nr == $this->per_page ? 'selected="selected"' : '').'>'.$nr

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 '$result' which will lead to PHP notices.
Open

            $result[] = '<input type="hidden" name="'.$key.'" value="'.$value.'"/>';

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 '$result' which will lead to PHP notices.
Open

        $result[] = '</select>';

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 '$result' which will lead to PHP notices.
Open

        $result[] = '<noscript>';

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 '$result' which will lead to PHP notices.
Open

        return implode("\n", $result);

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

            } else {
                if ('ASC' === $my_get_direction) {
                    $this->direction = 'ASC';
                } elseif ('DESC' === $my_get_direction) {
                    $this->direction = 'DESC';

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

            } else {
                if ('ASC' === $my_session_direction) {
                    $this->direction = 'ASC';
                } elseif ('DESC' === $my_session_direction) {
                    $this->direction = 'DESC';

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

        } else {
            $html .= $form;
        }

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

        } else {
            // The normal way
            $items = $this->get_clean_html($sort_data); // Getting the items of the table
        }

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

        } else {
            $filter = false !== $visibility_options;
        }

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

                } else {
                    $param[$tablename.'_direction'] = $my_get_direction;
                }

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 '$icon_attributes'.
Open

            $icon_attributes = ['style' => 'vertical-align: middle;'];

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 parameters such as '$sort'.
Open

        $sort = null

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

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

Avoid unused parameters such as '$direction'.
Open

        $direction = null,

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

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

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

        foreach ($this->other_tables as $index => &$tablename) {

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 '$index'.
Open

            foreach ($table_data as $index => &$row) {

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 parameters such as '$column'.
Open

        $column = null,

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

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

Avoid unused parameters such as '$perPage'.
Open

        $perPage = null,

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

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

The property $get_total_number_function is not named in camelCase.
Open

class SortableTable extends HTML_Table
{
    /**
     * A name for this table.
     */

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $additional_parameters is not named in camelCase.
Open

class SortableTable extends HTML_Table
{
    /**
     * A name for this table.
     */

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $param_prefix is not named in camelCase.
Open

class SortableTable extends HTML_Table
{
    /**
     * A name for this table.
     */

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $table_id is not named in camelCase.
Open

class SortableTable extends HTML_Table
{
    /**
     * A name for this table.
     */

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The parameter $table_name is not named in camelCase.
Open

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

class SortableTable extends HTML_Table
{
    /**
     * A name for this table.
     */

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The parameter $get_total_number_function is not named in camelCase.
Open

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

class SortableTable extends HTML_Table
{
    /**
     * A name for this table.
     */

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $use_jqgrid is not named in camelCase.
Open

class SortableTable extends HTML_Table
{
    /**
     * A name for this table.
     */

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $odd_even_rows_enabled is not named in camelCase.
Open

class SortableTable extends HTML_Table
{
    /**
     * A name for this table.
     */

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The parameter $table_id is not named in camelCase.
Open

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

class SortableTable extends HTML_Table
{
    /**
     * A name for this table.
     */

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The parameter $default_items_per_page is not named in camelCase.
Open

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

class SortableTable extends HTML_Table
{
    /**
     * A name for this table.
     */

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $default_items_per_page is not named in camelCase.
Open

class SortableTable extends HTML_Table
{
    /**
     * A name for this table.
     */

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $other_tables is not named in camelCase.
Open

class SortableTable extends HTML_Table
{
    /**
     * A name for this table.
     */

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $table_name is not named in camelCase.
Open

class SortableTable extends HTML_Table
{
    /**
     * A name for this table.
     */

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $form_actions is not named in camelCase.
Open

class SortableTable extends HTML_Table
{
    /**
     * A name for this table.
     */

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The parameter $get_data_function is not named in camelCase.
Open

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

class SortableTable extends HTML_Table
{
    /**
     * A name for this table.
     */

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $th_attributes is not named in camelCase.
Open

class SortableTable extends HTML_Table
{
    /**
     * A name for this table.
     */

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $total_number_of_items is not named in camelCase.
Open

class SortableTable extends HTML_Table
{
    /**
     * A name for this table.
     */

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $per_page is not named in camelCase.
Open

class SortableTable extends HTML_Table
{
    /**
     * A name for this table.
     */

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The parameter $default_column is not named in camelCase.
Open

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function set_header(
        $column,
        $label,
        $sortable = true,
        $th_attributes = ['class' => 'th-header'],

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

    public function set_form_actions($actions, $checkbox_name = 'id')
    {
        $this->form_actions = $actions;
        $this->checkbox_name = $checkbox_name;
    }

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function set_header(
        $column,
        $label,
        $sortable = true,
        $th_attributes = ['class' => 'th-header'],

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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 "table_name" is not in valid camel caps format
Open

        $this->table_name = $table_name;

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

            $my_get_direction = $_GET[$this->param_prefix.'direction'];

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

        $this->column_filters = [];

Method name "SortableTable::get_pager" is not in camel caps format
Open

    public function get_pager()

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

            $message_empty = api_xml_http_response_encode(get_lang('Empty'));

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

        if (!empty($this->additional_parameters)) {

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

        if (count($this->form_actions) > 0) {

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

                    .'" name="form_'.$this->table_name.'">';

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

            $grid_css_class = $grid_class['main']['class'];

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

                'class' => $grid_css_class.' '.$this->table_name.'_grid_container',

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

        $param[$this->param_prefix.'direction'] = $this->direction;

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

                $this->td_attributes[$column] = $td_attributes;

Member variable "th_attributes" is not in valid camel caps format
Open

    public $th_attributes;

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

            : $this->per_page;

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

        if (in_array(strtoupper($default_order_direction), ['ASC', 'DESC'])) {

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

            if (!in_array($my_get_direction, ['ASC', 'DESC'])) {

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

        Session::write($this->param_prefix.'direction', $this->direction);

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

        Session::write($this->param_prefix.'page_nr', $this->page_nr);

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

        $this->get_total_number_function = $get_total_number_function;

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

        $empty_table = false;

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

            foreach ($this->form_actions as $action => $label) {

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

                    'onclick' => "javascript:action_click(this, '$table_id');",

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

            $this->setCellContents(1, 0, $message_empty);

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

        $sort_data = true,

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

            $filter = false !== $visibility_options;

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

        if (is_array($table_data)) {

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

        foreach ($this->th_attributes as $column => $attributes) {

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

        return $new_table_data;

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

        $result[] = '<select style="width: auto;" class="form-control" name="'.$this->param_prefix

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

        $showed_items = $pager->getOffsetByPageId();

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

            $td_attributes = $columnInfo['td_attributes'];

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

            $param['page_nr'] = $this->page_nr;

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

        $param[$this->param_prefix.'page_nr'] = $this->page_nr;

Member variable "form_actions" is not in valid camel caps format
Open

    public $form_actions;

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

            ? (int) $_GET[$this->param_prefix.'per_page']

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

        $this->page_nr = isset($_GET[$this->param_prefix.'page_nr'])

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

        $this->th_attributes = [];

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

                $this->param_prefix.'per_page',

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

        $hide_navigation = true,

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

        if (!empty($grid_class)) {

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

            $grid_css_style = isset($grid_class['main']['style']) ? $grid_class['main']['style'] : null;

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

        $table_data = $this->get_table_data($from, $this->per_page, $this->column);

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

        $result[] = '<option value="'.$total_number_of_items.'" '

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

                    $link .= $this->param_prefix.$key.'='.urlencode($value).'&amp;';

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

        $param[$this->param_prefix.'column'] = $this->column;

Member variable "total_number_of_items" is not in valid camel caps format
Open

    public $total_number_of_items;

Member variable "td_attributes" is not in valid camel caps format
Open

    public $td_attributes;

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

        if (empty($table_id)) {

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

        $this->per_page = Session::read($this->param_prefix.'per_page', $default_items_per_page);

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

            $this->direction = $default_order_direction;

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

        $my_session_direction = Session::read($this->param_prefix.'direction');

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

            $my_get_direction = $_GET[$this->param_prefix.'direction'];

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

        $this->get_total_number_function = $get_total_number_function;

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

        $_GET[$this->param_prefix.'per_page'] = $this->default_items_per_page;

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

        $_GET[$this->param_prefix.'column'] = $this->defaultColumn;

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

                    array_keys($this->additional_parameters)

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

        if ($empty_table) {

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

        $table_id = 'form_'.$this->table_name.'_id';

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

        if (count($this->form_actions) > 0) {

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

        $item_css_class = $item_css_style = $grid_css_class = $grid_css_style = '';

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

        $item_css_class = $item_css_style = $grid_css_class = $grid_css_style = '';

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

                        $rows .= '<div class="'.$this->table_name.'_grid_element_'.$i.'">'.$element.'</div>';

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

        $nav = $pager_links['first'].' '.$pager_links['back'];

Member variable "odd_even_rows_enabled" is not in valid camel caps format
Open

    public $odd_even_rows_enabled = true;

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

        $table_data = $this->get_table_data($from, null, null, null, $sort);

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

        $default_items_per_page = 20,

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

        if (is_array($table_data)) {

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

        $this->defaultItemsPerPage = $default_items_per_page;

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

        $this->per_page = Session::read($this->param_prefix.'per_page', $default_items_per_page);

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

            ? (int) $_GET[$this->param_prefix.'page_nr']

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

            foreach ($table_data as $index => &$row) {

Method name "SortableTable::get_page_select_form" is not in camel caps format
Open

    public function get_page_select_form(): string

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

            if (!in_array($my_session_direction, ['ASC', 'DESC'])) {

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

            $th_attributes = $columnInfo['th_attributes'];

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

                $result .= '&amp;'.implode('&amp;', $param_string_parts);

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

        $this->get_data_function = $get_data_function;

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

        $_GET[$this->param_prefix.'direction'] = $this->direction;

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

            $query_vars_needed = [

Method name "SortableTable::get_sortable_table_param_string" is not in camel caps format
Open

    public function get_sortable_table_param_string()

Method name "SortableTable::return_table" is not in camel caps format
Open

    public function return_table()

Method name "SortableTable::display_grid" is not in camel caps format
Open

    public function display_grid()

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

            $empty_table = true;

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

            $message_empty = api_xml_http_response_encode(get_lang('Empty'));

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

                if ($this->get_total_number_of_items() > $per_page) {

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

            $items = $this->get_clean_html($sort_data); // Getting the items of the table

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

                        'class' => $item_css_class.' '.$this->table_name.'_grid_item',

Missing parameter name
Open

     * @param bool true for sorting table data or false otherwise

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

        $total_number_of_items = $this->get_total_number_of_items();

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

        if (is_array($this->additional_parameters)) {

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

            'td_attributes' => $td_attributes,

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

                if (!in_array($my_get_direction, ['ASC', 'DESC'])) {

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

                $param_string_parts[] = urlencode($key).'='.urlencode($value);

Member variable "table_data" is not in valid camel caps format
Open

    public $table_data;

Member variable "table_name" is not in valid camel caps format
Open

    public $table_name;

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

        $this->defaultColumn = (int) $default_column;

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

            $_GET[$this->param_prefix.'page_nr'] = 1;

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

        $this->column = isset($_GET[$this->param_prefix.'column'])

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

            ? (int) $_GET[$this->param_prefix.'column']

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

        $table_name = 'table',

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

            if (!empty($this->additional_parameters) && count($this->additional_parameters) > 0) {

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

            $attributes['id'] = $table_id;

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

            $query_vars_exclude = array_diff($query_vars, $query_vars_needed);

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

        $this->checkbox_name = null;

Missing function doc comment
Open

    public function toArray()

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

            if (count($this->form_actions) > 0) {

Missing parameter name
Open

     * @param bool       hide navigation optionally

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

        $this->td_attributes = [];

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

        $per_page = 20,

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

            if (count($this->form_actions) > 0) {

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

                $this->param_prefix.'direction',

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

            $grid_css_class = $grid_class['main']['class'];

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

            $grid_css_style = isset($grid_class['main']['style']) ? $grid_class['main']['style'] : null;

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

            $item_css_style = isset($grid_class['item']['style']) ? $grid_class['item']['style'] : null;

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

        $nav = $pager_links['first'].' '.$pager_links['back'];

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

                    if ($filter || isset($visibility_options[$i]) && $visibility_options[$i]

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

        $table_data = $this->get_table_data($from, $this->per_page, $this->column);

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

        return $showed_items[0].' - '.$showed_items[1].' / '.$this->get_total_number_of_items();

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

                'style' => $grid_css_style,

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

                $this->td_attributes[$column] = $td_attributes;

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

        $param[$this->param_prefix.'per_page'] = $this->per_page;

Method name "SortableTable::get_navigation_html" is not in camel caps format
Open

    public function get_navigation_html()

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

        $nav .= $pager_links['next'].' '.$pager_links['last'];

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

        $param[$this->param_prefix.'page_nr'] = $this->page_nr;

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

            $param = array_merge($param, $this->additional_parameters);

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

            .($total_number_of_items == $this->per_page ? 'selected="selected"' : '')

Method name "SortableTable::get_table_title" is not in camel caps format
Open

    public function get_table_title()

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

                $my_get_direction = $_GET[$tablename.'_direction'];

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

        $param[$this->param_prefix.'per_page'] = $this->per_page;

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

            $param_string_parts[] = urlencode($key).'='.urlencode($value);

Method name "SortableTable::set_form_actions" is not in camel caps format
Open

    public function set_form_actions($actions, $checkbox_name = 'id')

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

    public function set_form_actions($actions, $checkbox_name = 'id')

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

        $this->table_id = $table_id;

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

        if (!empty($my_session_direction)) {

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

                } elseif ('DESC' === $my_session_direction) {

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

                if ('ASC' === $my_get_direction) {

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

        Session::write($this->param_prefix.'per_page', $this->per_page);

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

            $params['perPage'] = $this->per_page;

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

            $query_vars = array_keys($_GET);

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

                $this->param_prefix.'column',

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

            foreach ($this->additional_parameters as $key => $value) {

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

            $message_empty = api_xml_http_response_encode(get_lang('Empty'));

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

        $grid_class = []

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

            if (!$hide_navigation) {

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

            $result[] = '<option value="'.$nr.'" '.($nr == $this->per_page ? 'selected="selected"' : '').'>'.$nr

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

            .($total_number_of_items == $this->per_page ? 'selected="selected"' : '')

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

                $this->th_attributes[$column] = $th_attributes;

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

                $param_string_parts[] = urlencode($key).'='.urlencode($value);

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

        $result = implode('&amp;', $param_string_parts);

Member variable "default_items_per_page" is not in valid camel caps format
Open

    public $default_items_per_page;

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

        $default_order_direction = 'ASC',

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

        if (!empty($this->per_page) && isset($_GET[$this->param_prefix.'per_page']) &&

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

            $this->per_page != $_GET[$this->param_prefix.'per_page']

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

        $this->per_page = isset($_GET[$this->param_prefix.'per_page'])

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

            : $this->page_nr;

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

        $this->total_number_of_items = -1;

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

        $this->other_tables = [];

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

            if (!empty($this->additional_parameters) && count($this->additional_parameters) > 0) {

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

            $params['excludeVars'] = $query_vars_exclude;

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

            $empty_table = true;

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

                id ="'.$table_id.'"

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

            $my_pager = $this->get_pager();

Missing parameter name
Open

     * @param bool       sort data optionally

Method name "SortableTable::display_simple_grid" is not in camel caps format
Open

    public function display_simple_grid(

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

        if (is_array($visibility_options)) {

Method name "SortableTable::get_clean_html" is not in camel caps format
Open

    public function get_clean_html($sort = true)

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

                $this->th_attributes[$column] = $th_attributes;

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

        $th_attributes = ['class' => 'th-header'],

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

            'th_attributes' => $th_attributes,

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

        if (is_array($this->additional_parameters) && count($this->additional_parameters) > 0) {

Member variable "table_id" is not in valid camel caps format
Open

    public $table_id = null;

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

        $get_total_number_function = null,

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

        $this->column = Session::read($this->param_prefix.'column', $default_column);

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

        Session::write($this->param_prefix.'per_page', $this->per_page);

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

        $this->default_items_per_page = $default_items_per_page;

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

            if ($my_pager->numPages() > 1) {

Missing parameter name
Open

     * @param int        content per page when show navigation (optional)

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

        $visibility_options,

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

                    .'" name="form_'.$this->table_name.'">';

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

        $param_string_parts = [];

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

        if (is_array($this->additional_parameters) && count($this->additional_parameters) > 0) {

Member variable "additional_parameters" is not in valid camel caps format
Open

    public $additional_parameters;

Member variable "use_jqgrid" is not in valid camel caps format
Open

    public $use_jqgrid = false;

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

        $this->param_prefix = $table_name.'_';

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

        if (isset($_GET[$this->param_prefix.'per_page'])) {

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

                if ('ASC' === $my_session_direction) {

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

                } elseif ('DESC' === $my_get_direction) {

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

        $this->form_actions = [];

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

            $html .= '<a class="btn btn--action mr-2" href="?'.$params.'" onclick="javascript: setCheckbox(false, \''.$table_id.'\'); return false;">'

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

            $items = $this->table_data; // This is a faster way to get what we want

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

        $new_table_data = [];

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

                $new_table_data[] = $row;

Member variable "page_nr" is not in valid camel caps format
Open

    public $page_nr;

Member variable "param_prefix" is not in valid camel caps format
Open

    public $param_prefix;

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

        $get_data_function = null,

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

        $this->param_prefix = $table_name.'_';

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

        $this->per_page = isset($_GET[$this->param_prefix.'per_page'])

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

        $this->get_data_function = $get_data_function;

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

        $_GET[$this->param_prefix.'per_page'] = $this->default_items_per_page;

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

                    $query_vars_needed,

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

        $table_id = 'form_'.$this->table_name.'_id';

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

            $html .= '<a class="btn btn--action mr-2" href="?'.$params.'&amp;'.$this->param_prefix.'selectall=1" onclick="javascript: setCheckbox(true, \''.$table_id.'\'); return false;">'

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

        if ($this->get_total_number_of_items() > $this->default_items_per_page) {

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

        if (count($this->form_actions) > 0) {

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

        $empty_table = false;

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

        if (!$empty_table) {

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

                'class' => $grid_css_class.' '.$this->table_name.'_grid_container',

Method name "SortableTable::get_table_html" is not in camel caps format
Open

    public function get_table_html()

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

        foreach ($this->td_attributes as $column => $attributes) {

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

            if ($total_number_of_items <= $nr) {

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

                    $param[$tablename.'_direction'] = $my_get_direction;

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

            $param_string_parts = [];

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

            if (count($param_string_parts) > 0) {

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

        $param[$this->param_prefix.'page_nr'] = $this->page_nr;

Member variable "column_filters" is not in valid camel caps format
Open

    public $column_filters;

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

        $default_column = 1,

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

        $this->page_nr = Session::read($this->param_prefix.'page_nr', 1);

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

        $this->column = Session::read($this->param_prefix.'column', $default_column);

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

            $params['urlVar'] = $this->param_prefix.'page_nr';

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

            $params['currentPage'] = $this->page_nr;

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

        return array_merge([$headers], $this->table_data);

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

            $this->setCellContents(1, 0, $message_empty);

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

        $empty_table = false;

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

            $this->setCellContents(1, 0, $message_empty);

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

            $empty_table = true;

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

        if ($hide_navigation) {

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

        $pager_links = $pager->getLinks();

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

            $param['per_page'] = $this->per_page;

Method name "SortableTable::set_header" is not in camel caps format
Open

    public function set_header(

Method name "SortableTable::get_additional_url_paramstring" is not in camel caps format
Open

    public function get_additional_url_paramstring()

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

        foreach ($this->other_tables as $index => &$tablename) {

Method name "SortableTable::set_column_filter" is not in camel caps format
Open

    public function set_column_filter($column, $function)

Member variable "get_total_number_function" is not in valid camel caps format
Open

    public $get_total_number_function;

Member variable "other_tables" is not in valid camel caps format
Open

    public $other_tables;

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

        $this->table_id = $table_id;

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

            $this->defaultItemsPerPage = $default_items_per_page = $defaultRow;

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

            $this->per_page != $_GET[$this->param_prefix.'per_page']

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

            Session::erase($this->param_prefix.'page_nr');

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

            Session::erase($this->param_prefix.'page_nr');

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

        $my_session_direction = Session::read($this->param_prefix.'direction');

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

        Session::write($this->param_prefix.'column', $this->column);

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

        $prefix = $this->param_prefix;

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

                $query_vars_needed = array_merge(

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

                name="form_'.$this->table_name.'">';

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

            $item_css_class = $grid_class['item']['class'];

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

            $item_css_style = isset($grid_class['item']['style']) ? $grid_class['item']['style'] : null;

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

            $item_css_style = isset($grid_class['item']['style']) ? $grid_class['item']['style'] : null;

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

                    if ($filter || isset($visibility_options[$i]) && $visibility_options[$i]

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

                        'class' => $item_css_class.' '.$this->table_name.'_grid_item',

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

            foreach ($table_data as &$row) {

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

        if ($total_number_of_items <= $this->default_items_per_page) {

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

        $param[$this->param_prefix.'page_nr'] = $this->page_nr;

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

        $td_attributes = null

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

            foreach ($this->additional_parameters as $key => $value) {

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

        $param[$this->param_prefix.'direction'] = $this->direction;

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

        $res = implode('&amp;', $param_string_parts);

Member variable "per_page" is not in valid camel caps format
Open

    public $per_page;

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

        $table_id = null,

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

            $table_id = $table_name.uniqid('table', true);

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

            $table_id = $table_name.uniqid('table', true);

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

        $this->additional_parameters = [];

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

        if (!empty($this->per_page) && isset($_GET[$this->param_prefix.'per_page']) &&

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

        $this->page_nr = Session::read($this->param_prefix.'page_nr', 1);

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

        if (isset($_GET[$this->param_prefix.'direction'])) {

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

            $query_vars_exclude = array_diff($query_vars, $query_vars_needed);

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

        if (!$empty_table) {

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

        $item_css_class = $item_css_style = $grid_css_class = $grid_css_style = '';

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

            $item_css_class = $grid_class['item']['class'];

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

                        'style' => $item_css_style,

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

        if ($total_number_of_items <= $this->default_items_per_page) {

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

        $param[$this->param_prefix.'column'] = $this->column;

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

        return $showed_items[0].' - '.$showed_items[1].' / '.$this->get_total_number_of_items();

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

            if (!is_null($td_attributes)) {

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

            if (!is_null($th_attributes)) {

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

        $this->column_filters[$column] = $function;

Member variable "get_data_function" is not in valid camel caps format
Open

    public $get_data_function;

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

        $this->table_name = $table_name;

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

        $this->per_page = Session::read($this->param_prefix.'per_page', $default_items_per_page);

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

        $this->page_nr = isset($_GET[$this->param_prefix.'page_nr'])

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

        Session::write($this->param_prefix.'page_nr', $this->page_nr);

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

        $this->default_items_per_page = $default_items_per_page;

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

        $_GET[$this->param_prefix.'page_nr'] = 1;

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

            $icon_attributes = ['style' => 'vertical-align: middle;'];

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

            $query_vars_exclude = array_diff($query_vars, $query_vars_needed);

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

            $html .= '<a class="btn btn--action mr-2" href="?'.$params.'&amp;'.$this->param_prefix.'selectall=1" onclick="javascript: setCheckbox(true, \''.$table_id.'\'); return false;">'

Missing parameter name
Open

     * @param array      options of visibility

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

                    if ($per_page > 10) {

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

        $item_css_class = $item_css_style = $grid_css_class = $grid_css_style = '';

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

            $grid_css_style = isset($grid_class['main']['style']) ? $grid_class['main']['style'] : null;

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

        $nav .= $pager_links['next'].' '.$pager_links['last'];

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

        if (true == $this->odd_even_rows_enabled) {

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

        $param_string_parts = [];

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

            $this->total_number_of_items = call_user_func(

Method name "SortableTable::set_other_tables" is not in camel caps format
Open

    public function set_other_tables($tablenames)

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

        if (null !== $this->get_data_function) {

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

                $this->get_data_function,

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

        $this->other_tables = $tablenames;

Doc comment for parameter $sort does not match actual variable name $direction
Open

     * @param bool   $sort      Whether to sort or not

Method name "SortableTable::get_table_data" is not in camel caps format
Open

    public function get_table_data(

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

        $this->table_data = $data;

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

        $this->checkbox_name = $checkbox_name;

Method name "SortableTable::set_additional_parameters" is not in camel caps format
Open

    public function set_additional_parameters(array $parameters)

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

        $this->additional_parameters = $parameters;

Method name "SortableTable::get_total_number_of_items" is not in camel caps format
Open

    public function get_total_number_of_items()

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

        if (-1 == $this->total_number_of_items && !is_null($this->get_total_number_function)) {

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

            $row[$column] = call_user_func($function, $firstParam, $url_params, $row);

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

        $url_params = $this->get_sortable_table_param_string().'&'.$this->get_additional_url_paramstring();

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

        $this->total_number_of_items = (int) $value;

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

        return $this->total_number_of_items;

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

        $this->checkbox_name = $checkbox_name;

Method name "SortableTable::filter_data" is not in camel caps format
Open

    public function filter_data($row)

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

        if (count($this->form_actions) > 0) {

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

                $row[0] = '<div class="checkbox" ><label><input type="checkbox" name="'.$this->checkbox_name.'[]" value="'.$row[0].'"';

Doc comment for parameter $direction does not match actual variable name $sort
Open

     * @param string $direction In which order should the data be sorted (ASC

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

                $this->per_page,

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

        foreach ($this->column_filters as $column => &$function) {

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

                if (isset($_GET[$this->param_prefix.'selectall'])) {

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

        if (-1 == $this->total_number_of_items && !is_null($this->get_total_number_function)) {

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

                $this->get_total_number_function,

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

        $this->form_actions = $actions;

The variable $query_vars_needed is not named in camelCase.
Open

    public function get_pager()
    {
        if (null === $this->pager) {
            $params['mode'] = 'Sliding';
            $params['perPage'] = $this->per_page;

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

    public function return_table()
    {
        $empty_table = false;
        $content = $this->get_table_html();
        if (0 == $this->get_total_number_of_items()) {

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function return_table()
    {
        $empty_table = false;
        $content = $this->get_table_html();
        if (0 == $this->get_total_number_of_items()) {

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function get_pager()
    {
        if (null === $this->pager) {
            $params['mode'] = 'Sliding';
            $params['perPage'] = $this->per_page;

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

    public function return_table()
    {
        $empty_table = false;
        $content = $this->get_table_html();
        if (0 == $this->get_total_number_of_items()) {

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function get_pager()
    {
        if (null === $this->pager) {
            $params['mode'] = 'Sliding';
            $params['perPage'] = $this->per_page;

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

    public function return_table()
    {
        $empty_table = false;
        $content = $this->get_table_html();
        if (0 == $this->get_total_number_of_items()) {

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function get_pager()
    {
        if (null === $this->pager) {
            $params['mode'] = 'Sliding';
            $params['perPage'] = $this->per_page;

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

    public function return_table()
    {
        $empty_table = false;
        $content = $this->get_table_html();
        if (0 == $this->get_total_number_of_items()) {

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

    public function return_table()
    {
        $empty_table = false;
        $content = $this->get_table_html();
        if (0 == $this->get_total_number_of_items()) {

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function return_table()
    {
        $empty_table = false;
        $content = $this->get_table_html();
        if (0 == $this->get_total_number_of_items()) {

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function get_pager()
    {
        if (null === $this->pager) {
            $params['mode'] = 'Sliding';
            $params['perPage'] = $this->per_page;

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

    public function get_pager()
    {
        if (null === $this->pager) {
            $params['mode'] = 'Sliding';
            $params['perPage'] = $this->per_page;

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function get_pager()
    {
        if (null === $this->pager) {
            $params['mode'] = 'Sliding';
            $params['perPage'] = $this->per_page;

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function get_pager()
    {
        if (null === $this->pager) {
            $params['mode'] = 'Sliding';
            $params['perPage'] = $this->per_page;

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function __construct(
        $table_name = 'table',
        $get_total_number_function = null,
        $get_data_function = null,
        $default_column = 1,

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

    public function get_pager()
    {
        if (null === $this->pager) {
            $params['mode'] = 'Sliding';
            $params['perPage'] = $this->per_page;

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

    public function return_table()
    {
        $empty_table = false;
        $content = $this->get_table_html();
        if (0 == $this->get_total_number_of_items()) {

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function get_table_html()
    {
        $pager = $this->get_pager();
        $offset = $pager->getOffsetByPageId();
        $from = $offset[0] - 1;

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

    public function get_page_select_form(): string
    {
        $total_number_of_items = $this->get_total_number_of_items();
        if ($total_number_of_items <= $this->default_items_per_page) {
            return '';

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

    public function get_page_select_form(): string
    {
        $total_number_of_items = $this->get_total_number_of_items();
        if ($total_number_of_items <= $this->default_items_per_page) {
            return '';

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

    public function set_header(
        $column,
        $label,
        $sortable = true,
        $th_attributes = ['class' => 'th-header'],

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

    public function get_additional_url_paramstring()
    {
        $param_string_parts = [];
        if (is_array($this->additional_parameters) && count($this->additional_parameters) > 0) {
            foreach ($this->additional_parameters as $key => $value) {

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

    public function get_sortable_table_param_string()
    {
        $param[$this->param_prefix.'direction'] = $this->direction;
        $param[$this->param_prefix.'page_nr'] = $this->page_nr;
        $param[$this->param_prefix.'per_page'] = $this->per_page;

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

    public function display_grid()
    {
        $empty_table = false;
        if (0 == $this->get_total_number_of_items()) {
            $message_empty = api_xml_http_response_encode(get_lang('Empty'));

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function display_grid()
    {
        $empty_table = false;
        if (0 == $this->get_total_number_of_items()) {
            $message_empty = api_xml_http_response_encode(get_lang('Empty'));

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

    public function display_grid()
    {
        $empty_table = false;
        if (0 == $this->get_total_number_of_items()) {
            $message_empty = api_xml_http_response_encode(get_lang('Empty'));

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function get_clean_html($sort = true)
    {
        $pager = $this->get_pager();
        $offset = $pager->getOffsetByPageId();
        $from = $offset[0] - 1;

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

    public function get_page_select_form(): string
    {
        $total_number_of_items = $this->get_total_number_of_items();
        if ($total_number_of_items <= $this->default_items_per_page) {
            return '';

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

    public function processHeaders()
    {
        $counter = 0;
        foreach ($this->headers as $column => $columnInfo) {
            $label = $columnInfo['label'];

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

    public function return_table()
    {
        $empty_table = false;
        $content = $this->get_table_html();
        if (0 == $this->get_total_number_of_items()) {

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

    public function get_table_html()
    {
        $pager = $this->get_pager();
        $offset = $pager->getOffsetByPageId();
        $from = $offset[0] - 1;

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

    public function processHeaders()
    {
        $counter = 0;
        foreach ($this->headers as $column => $columnInfo) {
            $label = $columnInfo['label'];

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

    public function get_additional_url_paramstring()
    {
        $param_string_parts = [];
        if (is_array($this->additional_parameters) && count($this->additional_parameters) > 0) {
            foreach ($this->additional_parameters as $key => $value) {

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function get_navigation_html()
    {
        $pager = $this->get_pager();
        $pager_links = $pager->getLinks();
        $nav = $pager_links['first'].' '.$pager_links['back'];

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

    public function get_clean_html($sort = true)
    {
        $pager = $this->get_pager();
        $offset = $pager->getOffsetByPageId();
        $from = $offset[0] - 1;

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

    public function get_table_title()
    {
        $pager = $this->get_pager();
        $showed_items = $pager->getOffsetByPageId();

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function get_navigation_html()
    {
        $pager = $this->get_pager();
        $pager_links = $pager->getLinks();
        $nav = $pager_links['first'].' '.$pager_links['back'];

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

    public function get_clean_html($sort = true)
    {
        $pager = $this->get_pager();
        $offset = $pager->getOffsetByPageId();
        $from = $offset[0] - 1;

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

    public function processHeaders()
    {
        $counter = 0;
        foreach ($this->headers as $column => $columnInfo) {
            $label = $columnInfo['label'];

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

    public function processHeaders()
    {
        $counter = 0;
        foreach ($this->headers as $column => $columnInfo) {
            $label = $columnInfo['label'];

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

    public function get_additional_url_paramstring()
    {
        $param_string_parts = [];
        if (is_array($this->additional_parameters) && count($this->additional_parameters) > 0) {
            foreach ($this->additional_parameters as $key => $value) {

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function get_additional_url_paramstring()
    {
        $param_string_parts = [];
        if (is_array($this->additional_parameters) && count($this->additional_parameters) > 0) {
            foreach ($this->additional_parameters as $key => $value) {

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

    public function filter_data($row)
    {
        $url_params = $this->get_sortable_table_param_string().'&'.$this->get_additional_url_paramstring();
        foreach ($this->column_filters as $column => &$function) {
            $firstParam = isset($row[$column]) ? $row[$column] : 0;

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

    public function display_grid()
    {
        $empty_table = false;
        if (0 == $this->get_total_number_of_items()) {
            $message_empty = api_xml_http_response_encode(get_lang('Empty'));

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function get_clean_html($sort = true)
    {
        $pager = $this->get_pager();
        $offset = $pager->getOffsetByPageId();
        $from = $offset[0] - 1;

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

    public function get_additional_url_paramstring()
    {
        $param_string_parts = [];
        if (is_array($this->additional_parameters) && count($this->additional_parameters) > 0) {
            foreach ($this->additional_parameters as $key => $value) {

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

    public function return_table()
    {
        $empty_table = false;
        $content = $this->get_table_html();
        if (0 == $this->get_total_number_of_items()) {

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function get_table_html()
    {
        $pager = $this->get_pager();
        $offset = $pager->getOffsetByPageId();
        $from = $offset[0] - 1;

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

    public function filter_data($row)
    {
        $url_params = $this->get_sortable_table_param_string().'&'.$this->get_additional_url_paramstring();
        foreach ($this->column_filters as $column => &$function) {
            $firstParam = isset($row[$column]) ? $row[$column] : 0;

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

    public function display_grid()
    {
        $empty_table = false;
        if (0 == $this->get_total_number_of_items()) {
            $message_empty = api_xml_http_response_encode(get_lang('Empty'));

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function get_sortable_table_param_string()
    {
        $param[$this->param_prefix.'direction'] = $this->direction;
        $param[$this->param_prefix.'page_nr'] = $this->page_nr;
        $param[$this->param_prefix.'per_page'] = $this->per_page;

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

    public function display_grid()
    {
        $empty_table = false;
        if (0 == $this->get_total_number_of_items()) {
            $message_empty = api_xml_http_response_encode(get_lang('Empty'));

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function get_navigation_html()
    {
        $pager = $this->get_pager();
        $pager_links = $pager->getLinks();
        $nav = $pager_links['first'].' '.$pager_links['back'];

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

    public function get_navigation_html()
    {
        $pager = $this->get_pager();
        $pager_links = $pager->getLinks();
        $nav = $pager_links['first'].' '.$pager_links['back'];

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

    public function get_clean_html($sort = true)
    {
        $pager = $this->get_pager();
        $offset = $pager->getOffsetByPageId();
        $from = $offset[0] - 1;

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

    public function get_additional_url_paramstring()
    {
        $param_string_parts = [];
        if (is_array($this->additional_parameters) && count($this->additional_parameters) > 0) {
            foreach ($this->additional_parameters as $key => $value) {

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function get_page_select_form(): string
    {
        $total_number_of_items = $this->get_total_number_of_items();
        if ($total_number_of_items <= $this->default_items_per_page) {
            return '';

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

    public function processHeaders()
    {
        $counter = 0;
        foreach ($this->headers as $column => $columnInfo) {
            $label = $columnInfo['label'];

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function processHeaders()
    {
        $counter = 0;
        foreach ($this->headers as $column => $columnInfo) {
            $label = $columnInfo['label'];

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

    public function set_form_actions($actions, $checkbox_name = 'id')
    {
        $this->form_actions = $actions;
        $this->checkbox_name = $checkbox_name;
    }

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function set_header(
        $column,
        $label,
        $sortable = true,
        $th_attributes = ['class' => 'th-header'],

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

    public function get_additional_url_paramstring()
    {
        $param_string_parts = [];
        if (is_array($this->additional_parameters) && count($this->additional_parameters) > 0) {
            foreach ($this->additional_parameters as $key => $value) {

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function get_navigation_html()
    {
        $pager = $this->get_pager();
        $pager_links = $pager->getLinks();
        $nav = $pager_links['first'].' '.$pager_links['back'];

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

    public function get_table_title()
    {
        $pager = $this->get_pager();
        $showed_items = $pager->getOffsetByPageId();

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

    public function get_additional_url_paramstring()
    {
        $param_string_parts = [];
        if (is_array($this->additional_parameters) && count($this->additional_parameters) > 0) {
            foreach ($this->additional_parameters as $key => $value) {

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

    public function get_additional_url_paramstring()
    {
        $param_string_parts = [];
        if (is_array($this->additional_parameters) && count($this->additional_parameters) > 0) {
            foreach ($this->additional_parameters as $key => $value) {

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

    public function get_additional_url_paramstring()
    {
        $param_string_parts = [];
        if (is_array($this->additional_parameters) && count($this->additional_parameters) > 0) {
            foreach ($this->additional_parameters as $key => $value) {

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

    public function display_grid()
    {
        $empty_table = false;
        if (0 == $this->get_total_number_of_items()) {
            $message_empty = api_xml_http_response_encode(get_lang('Empty'));

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

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

    public function get_clean_html($sort = true)
    {
        $pager = $this->get_pager();
        $offset = $pager->getOffsetByPageId();
        $from = $offset[0] - 1;

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

    public function get_page_select_form(): string
    {
        $total_number_of_items = $this->get_total_number_of_items();
        if ($total_number_of_items <= $this->default_items_per_page) {
            return '';

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

    public function get_table_title()
    {
        $pager = $this->get_pager();
        $showed_items = $pager->getOffsetByPageId();

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

    public function get_sortable_table_param_string()
    {
        $param[$this->param_prefix.'direction'] = $this->direction;
        $param[$this->param_prefix.'page_nr'] = $this->page_nr;
        $param[$this->param_prefix.'per_page'] = $this->per_page;

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 method get_pager is not named in camelCase.
Open

    public function get_pager()
    {
        if (null === $this->pager) {
            $params['mode'] = 'Sliding';
            $params['perPage'] = $this->per_page;

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_clean_html is not named in camelCase.
Open

    public function get_clean_html($sort = true)
    {
        $pager = $this->get_pager();
        $offset = $pager->getOffsetByPageId();
        $from = $offset[0] - 1;

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_page_select_form is not named in camelCase.
Open

    public function get_page_select_form(): string
    {
        $total_number_of_items = $this->get_total_number_of_items();
        if ($total_number_of_items <= $this->default_items_per_page) {
            return '';

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_table_data is not named in camelCase.
Open

    public function get_table_data(
        $from = null,
        $perPage = null,
        $column = null,
        $direction = null,

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method display_grid is not named in camelCase.
Open

    public function display_grid()
    {
        $empty_table = false;
        if (0 == $this->get_total_number_of_items()) {
            $message_empty = api_xml_http_response_encode(get_lang('Empty'));

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_table_html is not named in camelCase.
Open

    public function get_table_html()
    {
        $pager = $this->get_pager();
        $offset = $pager->getOffsetByPageId();
        $from = $offset[0] - 1;

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method set_additional_parameters is not named in camelCase.
Open

    public function set_additional_parameters(array $parameters)
    {
        $this->additional_parameters = $parameters;
    }

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method set_column_filter is not named in camelCase.
Open

    public function set_column_filter($column, $function)
    {
        $this->column_filters[$column] = $function;
    }

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method filter_data is not named in camelCase.
Open

    public function filter_data($row)
    {
        $url_params = $this->get_sortable_table_param_string().'&'.$this->get_additional_url_paramstring();
        foreach ($this->column_filters as $column => &$function) {
            $firstParam = isset($row[$column]) ? $row[$column] : 0;

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_sortable_table_param_string is not named in camelCase.
Open

    public function get_sortable_table_param_string()
    {
        $param[$this->param_prefix.'direction'] = $this->direction;
        $param[$this->param_prefix.'page_nr'] = $this->page_nr;
        $param[$this->param_prefix.'per_page'] = $this->per_page;

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_total_number_of_items is not named in camelCase.
Open

    public function get_total_number_of_items()
    {
        if (-1 == $this->total_number_of_items && !is_null($this->get_total_number_function)) {
            $this->total_number_of_items = call_user_func(
                $this->get_total_number_function,

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method return_table is not named in camelCase.
Open

    public function return_table()
    {
        $empty_table = false;
        $content = $this->get_table_html();
        if (0 == $this->get_total_number_of_items()) {

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method set_other_tables is not named in camelCase.
Open

    public function set_other_tables($tablenames)
    {
        $this->other_tables = $tablenames;
    }

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_navigation_html is not named in camelCase.
Open

    public function get_navigation_html()
    {
        $pager = $this->get_pager();
        $pager_links = $pager->getLinks();
        $nav = $pager_links['first'].' '.$pager_links['back'];

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_additional_url_paramstring is not named in camelCase.
Open

    public function get_additional_url_paramstring()
    {
        $param_string_parts = [];
        if (is_array($this->additional_parameters) && count($this->additional_parameters) > 0) {
            foreach ($this->additional_parameters as $key => $value) {

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_table_title is not named in camelCase.
Open

    public function get_table_title()
    {
        $pager = $this->get_pager();
        $showed_items = $pager->getOffsetByPageId();

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method display_simple_grid is not named in camelCase.
Open

    public function display_simple_grid(
        $visibility_options,
        $hide_navigation = true,
        $per_page = 20,
        $sort_data = true,

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method set_header is not named in camelCase.
Open

    public function set_header(
        $column,
        $label,
        $sortable = true,
        $th_attributes = ['class' => 'th-header'],

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method set_form_actions is not named in camelCase.
Open

    public function set_form_actions($actions, $checkbox_name = 'id')
    {
        $this->form_actions = $actions;
        $this->checkbox_name = $checkbox_name;
    }

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

There are no issues that match your filters.

Category
Status