Esempio n. 1
0
 /**
  * Returns the number of objects in the result
  *
  * @return integer The number of matching objects
  * @api
  */
 public function count()
 {
     if (is_array($this->queryResult)) {
         return count($this->queryResult);
     } else {
         return $this->persistenceManager->getObjectCountByQuery($this->query);
     }
 }
Esempio n. 2
0
 /**
  * Executes the number of matching objects for the query
  *
  * @return integer The number of matching objects
  * @deprecated since Extbase 1.3.0; was removed in FLOW3; will be removed in Extbase 1.4.0; use Query::execute()::count() instead
  * @api
  */
 public function count()
 {
     t3lib_div::logDeprecatedFunction();
     return $this->persistenceManager->getObjectCountByQuery($this);
 }