|
|
|
|
@ -386,21 +386,19 @@ class Display |
|
|
|
|
/** |
|
|
|
|
* Displays a table with a special configuration |
|
|
|
|
* @param array $header Titles for the table header |
|
|
|
|
* each item in this array can contain 3 values |
|
|
|
|
* - 1st element: the column title |
|
|
|
|
* - 2nd element: true or false (column sortable?) |
|
|
|
|
* - 3th element: additional attributes for |
|
|
|
|
* th-tag (eg for column-width) |
|
|
|
|
* - 4the element: additional attributes for the td-tags |
|
|
|
|
* each item in this array can contain 3 values |
|
|
|
|
* - 1st element: the column title |
|
|
|
|
* - 2nd element: true or false (column sortable?) |
|
|
|
|
* - 3th element: additional attributes for th-tag (eg for column-width) |
|
|
|
|
* - 4the element: additional attributes for the td-tags |
|
|
|
|
* @param array $content 2D-array with the tables content |
|
|
|
|
* @param array $sorting_options Keys are: |
|
|
|
|
* 'column' = The column to use as sort-key |
|
|
|
|
* 'direction' = SORT_ASC or SORT_DESC |
|
|
|
|
* 'column' = The column to use as sort-key |
|
|
|
|
* 'direction' = SORT_ASC or SORT_DESC |
|
|
|
|
* @param array $paging_options Keys are: |
|
|
|
|
* 'per_page_default' = items per page when switching from |
|
|
|
|
* full- list to per-page-view |
|
|
|
|
* 'per_page' = number of items to show per page |
|
|
|
|
* 'page_nr' = The page to display |
|
|
|
|
* 'per_page_default' = items per page when switching from full list to per-page-view |
|
|
|
|
* 'per_page' = number of items to show per page |
|
|
|
|
* 'page_nr' = The page to display |
|
|
|
|
* @param array $query_vars Additional variables to add in the query-string |
|
|
|
|
* @param array $column_show Array of binaries 1= show columns 0. hide a column |
|
|
|
|
* @param array $column_order An array of integers that let us decide how the columns are going to be sort. |
|
|
|
|
@ -494,7 +492,7 @@ class Display |
|
|
|
|
* @deprecated use Display::addFlash with Display::return_message |
|
|
|
|
* @return void |
|
|
|
|
*/ |
|
|
|
|
public static function display_confirmation_message ($message, $filter = true, $returnValue = false) |
|
|
|
|
public static function display_confirmation_message($message, $filter = true, $returnValue = false) |
|
|
|
|
{ |
|
|
|
|
$message = self::return_message($message, 'confirm', $filter); |
|
|
|
|
if ($returnValue) { |
|
|
|
|
@ -513,7 +511,7 @@ class Display |
|
|
|
|
* |
|
|
|
|
* @return void |
|
|
|
|
*/ |
|
|
|
|
public static function display_error_message ($message, $filter = true, $returnValue = false) |
|
|
|
|
public static function display_error_message($message, $filter = true, $returnValue = false) |
|
|
|
|
{ |
|
|
|
|
$message = self::return_message($message, 'error', $filter); |
|
|
|
|
if ($returnValue) { |
|
|
|
|
|