/** * @see \wcf\system\worker\IWorker::countObjects() */ public function countObjects() { if ($this->count === null) { if ($this->objectList === null) { $this->initObjectList(); } $this->count = $this->objectList->countObjects(); } }
/** * Counts the displayed items. * * @return integer */ public function countItems() { // call countItems event EventHandler::getInstance()->fireAction($this, 'countItems'); return $this->objectList->countObjects(); }