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