/**
  * Constructor
  *
  * Sets up the paginator
  *
  * @param   string $pagername  unique name for the pager e.g. 'users-list'
  */
 function __construct($pagername = false)
 {
     $this->set_name($pagername);
     $this->set_id($this->get_name() . '_pager');
     // defaults
     $this->suppress_sort = FALSE;
     $this->do_not_allow_sort_on_these_columns = array();
     parent::__construct();
     global $wpdb;
     $this->wpdb =& $wpdb;
     // $this->custom_html_rows = FALSE;
     // $this->filter->fields = array();
 }
Esempio n. 2
0
 public function __construct($page = 1, $nbByPage = 25, array $elements = array())
 {
     parent::__construct($page, $nbByPage, $elements);
     $this->rootOperation = new ListOperation($this->mainOperator);
 }
Esempio n. 3
0
 public function __construct($page, $perPage)
 {
     parent::__construct($page, $perPage);
 }