예제 #1
0
파일: Facade.php 프로젝트: up9cloud/redbean
 /**
  * Counts the number of beans of type $type.
  * This method accepts a second argument to modify the count-query.
  * A third argument can be used to provide bindings for the SQL snippet.
  *
  * @param string $type     type of bean we are looking for
  * @param string $addSQL   additional SQL snippet
  * @param array  $bindings parameters to bind to SQL
  *
  * @return integer
  */
 public static function count($type, $addSQL = '', $bindings = array())
 {
     return Facade::$redbean->count($type, $addSQL, $bindings);
 }