|
@@ -237,12 +237,12 @@ class Display {
|
|
|
* 'hide_navigation' = true to hide the navigation
|
|
|
* @param array $query_vars Additional variables to add in the query-string
|
|
|
* @param array $form actions Additional variables to add in the query-string
|
|
|
- * @param mixed An array with bool values to know which columns show. i.e: $vibility_options= array(true, false) we will only show the first column
|
|
|
+ * @param mixed An array with bool values to know which columns show. i.e: $visibility_options= array(true, false) we will only show the first column
|
|
|
* Can be also only a bool value. TRUE: show all columns, FALSE: show nothing
|
|
|
*/
|
|
|
|
|
|
- public static function display_sortable_grid($name, $header, $content, $paging_options = array(), $query_vars = null, $form_actions = array(), $vibility_options = true, $sort_data = true) {
|
|
|
- echo self::return_sortable_grid($name, $header, $content, $paging_options, $query_vars, $form_actions, $vibility_options, $sort_data);
|
|
|
+ public static function display_sortable_grid($name, $header, $content, $paging_options = array(), $query_vars = null, $form_actions = array(), $visibility_options = true, $sort_data = true) {
|
|
|
+ echo self::return_sortable_grid($name, $header, $content, $paging_options, $query_vars, $form_actions, $visibility_options, $sort_data);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -258,12 +258,12 @@ class Display {
|
|
|
* 'hide_navigation' = true to hide the navigation
|
|
|
* @param array $query_vars Additional variables to add in the query-string
|
|
|
* @param array $form actions Additional variables to add in the query-string
|
|
|
- * @param mixed An array with bool values to know which columns show. i.e: $vibility_options= array(true, false) we will only show the first column
|
|
|
+ * @param mixed An array with bool values to know which columns show. i.e: $visibility_options= array(true, false) we will only show the first column
|
|
|
* Can be also only a bool value. TRUE: show all columns, FALSE: show nothing
|
|
|
* @param bool true for sorting data or false otherwise
|
|
|
* @return string html grid
|
|
|
*/
|
|
|
- public static function return_sortable_grid($name, $header, $content, $paging_options = array(), $query_vars = null, $form_actions = array(), $vibility_options = true, $sort_data = true) {
|
|
|
+ public static function return_sortable_grid($name, $header, $content, $paging_options = array(), $query_vars = null, $form_actions = array(), $visibility_options = true, $sort_data = true) {
|
|
|
if (!class_exists('SortableTable')) {
|
|
|
require_once 'sortabletable.class.php';
|
|
|
}
|
|
@@ -275,7 +275,7 @@ class Display {
|
|
|
if (is_array($query_vars)) {
|
|
|
$table->set_additional_parameters($query_vars);
|
|
|
}
|
|
|
- return $table->display_simple_grid($vibility_options, $paging_options['hide_navigation'], $paging_options['per_page'], $sort_data);
|
|
|
+ return $table->display_simple_grid($visibility_options, $paging_options['hide_navigation'], $paging_options['per_page'], $sort_data);
|
|
|
}
|
|
|
|
|
|
/**
|