public function __construct($page = 0, $page_size = 0) { if ($page_size == 0) { $page_size = MDL_Config::getInstance()->user_list_page_size; } $this->setPageSize($page_size); $this->setCurrentPage($page); $sql = 'select `user_id`,`user_name`,`user_nickname` from ' . DB_TABLE_USER; $this->setSQLPrefix($sql); parent::__construct(); }
public function __construct($page = 0, $page_size = 0) { if ($page_size == 0) { $page_size = MDL_Config::getInstance()->problem_list_page_size; } $this->setPageSize($page_size); $this->setCurrentPage($page); $sql = 'select * from ' . DB_TABLE_CONTEST; $this->setSQLPrefix($sql); parent::__construct(); }