Refactor generic tables and page index classes #26

Merged
Roflin merged 9 commits from refactor-tables into master 2021-05-17 20:19:18 +02:00
2 changed files with 19 additions and 23 deletions
Showing only changes of commit af73f00701 - Show all commits

View File

@ -8,18 +8,14 @@
class GenericTable
{
protected $header = [];
protected $body = [];
protected $pageIndex = null;
protected $currentPage = 1;
private $header = [];
private $body = [];
private $pageIndex = null;
private $currentPage = 1;
protected $title;
protected $title_class;
protected $tableIsSortable = false;
protected $recordCount;
protected $needsPageIndex = false;
protected $current_page;
protected $num_pages;
private $title;
private $title_class;
private $tableIsSortable = false;
public $form_above;
public $form_below;

View File

@ -8,19 +8,19 @@
class PageIndex
{
protected $base_url;
protected $current_page = 1;
protected $index_class = 'pagination';
protected $items_per_page = 0;
private $base_url;
private $current_page = 1;
private $index_class = 'pagination';
private $items_per_page = 0;
private $linkBuilder;
protected $needsPageIndex = false;
protected $num_pages = 1;
protected $page_index = [];
protected $page_slug = '%AMP%page=%PAGE%';
protected $recordCount = 0;
protected $sort_direction = null;
protected $sort_order = null;
protected $start = 0;
private $needsPageIndex = false;
private $num_pages = 1;
private $page_index = [];
private $page_slug = '%AMP%page=%PAGE%';
private $recordCount = 0;
private $sort_direction = null;
private $sort_order = null;
private $start = 0;
public function __construct($options)
{