示例#1
0
文件: rb.php 项目: tejdeeps/tejcs.com
 /**
  * Counts beans
  *
  * @param string $beanType type of bean
  *
  * @return integer $numOfBeans
  */
 public static function count($beanType)
 {
     return RedBean_Facade::$redbean->count($beanType);
 }
示例#2
0
 /**
  * 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);
 }
示例#4
0
 /**
  * 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);
 }
示例#5
0
 /**
  * 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);
 }
示例#6
0
	/**
	 * Counts beans
	 *
	 * @param string $beanType type of bean
	 *
	 * @return integer $numOfBeans
	 */
	public static function count( $beanType ) {
		return R::$redbean->count($beanType);
	}