Exemplo n.º 1
0
 public function __construct($id, array $columns, HTMLTableSortingRule $default_sorting_rule, $rows_per_page = self::DEFAULT_PAGINATION)
 {
     foreach ($columns as $column) {
         $this->add_column($column);
     }
     $default_sorting_rule->set_is_default_sorting(true);
     $this->default_sorting_rule = $default_sorting_rule;
     $this->rows_per_page = $rows_per_page;
     $this->set_nb_rows_options($this->nb_rows_options);
     $this->id = $id;
 }
 private function get_sort_parameter_column(HTMLTableSortingRule $rule)
 {
     if ($this->is_sort_parameter_allowed($rule->get_sort_parameter()) || $rule->is_default_sorting()) {
         return $rule->get_sort_parameter();
     }
 }