gyro/core/model/base/queries/dbquery.count.cls.php
Go to the documentation of this file.00001 <?php 00002 require_once dirname(__FILE__) . '/dbquery.select.cls.php'; 00003 00004 /** 00005 * A query counting results insteead of returning them 00006 * 00007 * @author Gerd Riesselmann 00008 * @ingroup Model 00009 */ 00010 class DBQueryCount extends DBQuerySelect { 00011 public function __construct($table) { 00012 parent::__construct($table, self::NORMAL); 00013 } 00014 00015 /** 00016 * Create SQL builder 00017 * 00018 * @param array $params 00019 * @return IDBSqlBuilder 00020 */ 00021 protected function create_sql_builder($params) { 00022 $builder = DBSqlBuilderFactory::create_builder(DBSqlBuilderFactory::COUNT, $this, $params); 00023 return $builder; 00024 } 00025 }