/** * @see Page::readData() */ public function readData() { parent::readData(); // read warnings $this->userWarningList->sqlLimit = 50; $this->userWarningList->sqlOrderBy = 'user_warning.expires DESC'; $this->userWarningList->readObjects(); // read suspensions $this->userSuspensionList->sqlLimit = 50; $this->userSuspensionList->sqlOrderBy = 'user_suspension.expires DESC'; $this->userSuspensionList->readObjects(); }
/** * @see Page::readData() */ public function readData() { parent::readData(); // read objects $this->userWarningList->sqlOffset = ($this->pageNo - 1) * $this->itemsPerPage; $this->userWarningList->sqlLimit = $this->itemsPerPage; $this->userWarningList->sqlOrderBy = 'user_warning.' . $this->sortField . " " . $this->sortOrder; $this->userWarningList->readObjects(); }