/** * Counts beans * * @param string $beanType type of bean * * @return integer $numOfBeans */ public static function count($beanType) { return RedBean_Facade::$redbean->count($beanType); }
/** * 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 * * @throws RedBean_Exception_SQL */ public static function count($type, $addSQL = '', $bindings = array()) { return RedBean_Facade::$redbean->count($type, $addSQL, $bindings); }
/** * 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 * * @throws RedBean_Exception_SQL */ public function count($type, $addSQL = '', $bindings = array()) { return $this->redbean->count($type, $addSQL, $bindings); }
/** * Counts beans * * @param string $beanType type of bean * @param string $addSQL additional SQL snippet (for filtering, limiting) * @param array $params parameters to bind to SQL * * @return integer $numOfBeans */ public static function count($beanType, $addSQL = '', $params = array()) { return RedBean_Facade::$redbean->count($beanType, $addSQL, $params); }
/** * 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 * * @throws RedBean_Exception_SQL */ public static function count($type, $addSQL = '', $bindings = array()) { return self::$redbean->count($type, $addSQL, $bindings); }
/** * Counts beans * * @param string $beanType type of bean * * @return integer $numOfBeans */ public static function count( $beanType ) { return R::$redbean->count($beanType); }