wordpress/wp-content/plugins/sqlite-integration/query.class.php
/**
	 * Call back method to change SELECT query to SELECT COUNT().
	 *
	 * obsolite since version 1.5.1
	 *
	 * @param	string $query	the query to be transformed
	 * @return string the transformed query
	 * @access private
	 */
Call back method to change SELECT query to SELECT COUNT().

@param       string $query   the query to be transformed
@return string the transformed query
@access private
Call back method to change SELECT query to SELECT COUNT () . @param string $query the query to be transformed @return string the transformed query @access private
private function _transform_to_count($query){
		$pattern = '/^\\s*SELECT\\s*(DISTINCT|)?.*?FROM\b/isx';
		$_query = preg_replace($pattern, 'SELECT \\1 COUNT(*) FROM ', $query);
		return $_query;
	}
private function _transform_to_count ( $ query ) { $ pattern = '/^\\s*SELECT\\s*(DISTINCT|)?.*?FROM\b/isx' ; $ _query = preg_replace ( $ pattern , 'SELECT \\1 COUNT(*) FROM ' , $ query ) ; return $ _query ; }
Call back method to change SELECT query to SELECT COUNT().
Call back method to change SELECT query to SELECT COUNT () .