Beispiel #1
0
 /**
  * Count Pagination Data Source
  *
  * @return integer
  *   Number of elements present in given source
  *
  * @TODO Optimize to not query database twice
  */
 public function count()
 {
     return count($this->em->fetchAll());
 }
Beispiel #2
0
 /**
  * Reset the Routes Storage, by formatting or cleaning it
  *
  * @return integer
  */
 public function reset()
 {
     return $this->manager->delete()->rowCount();
 }