contributions/sphinx/model/drivers/sphinx/sqlbuilder/dbsqlbuilder.count.sphinx.cls.php
Go to the documentation of this file.00001 <?php 00002 require_once dirname(__FILE__) . '/dbsqlbuilder.select.sphinx.cls.php'; 00003 00004 /** 00005 * Count Query Builder for Sphinx 00006 * 00007 * @author Gerd Riesselmann 00008 * @ingroup Sphinx 00009 */ 00010 class DBSqlBuilderCountSphinx extends DBSqlBuilderSelectSphinx { 00011 /** 00012 * Return limit as string 00013 */ 00014 protected function get_limit($arr_limit) { 00015 return '0;1'; 00016 } 00017 00018 protected function get_features($query) { 00019 $ret = parent::get_features($query); 00020 $ret['count'] = true; 00021 return $ret; 00022 } 00023 }