Beispiel #1
0
 /**
  * Get the number of rows returned by the query generated using the given options
  *
  * @see _select()
  *
  * @param array $options The list of conditions for the query
  *
  * @return int The number of rows
  *
  * @since 1.0.0
  */
 public function count($options = null)
 {
     $options = is_array($options) ? $options : array();
     $query = $this->_select($options);
     $this->database->query($query);
     return $this->database->getNumRows();
 }