count() 공개 메소드

Count objects that match $query.
public count ( mixed $query = null ) : integer
$query mixed The query to count matches of.
리턴 integer All objects matching $query.
예제 #1
0
파일: List.php 프로젝트: jubinpatel/horde
 /**
  * Implementation of count() for Countable
  *
  * @return integer Number of elements in the list
  */
 public function count()
 {
     if (is_null($this->_count)) {
         $this->_count = $this->_mapper->count($this->_query);
     }
     return $this->_count;
 }