Skip to content
Snippets Groups Projects
Commit 8808bee9 authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Updated documentation of SQL lugin.

parent 72b6e456
No related branches found
No related tags found
No related merge requests found
......@@ -10,14 +10,15 @@
* @property $query The query that is being evaluated.
*/
class pQuerySql extends pQuery implements pQueryExtension {
const VARIABLE_PATTERN = '/\[\s*%s\s*\]/';
static $accepts = array('string' => 'parse_query', 'resource');
/**
* The pattern to use for specifying variables in a query.
*/
const VARIABLE_PATTERN = '/\[\s*%s\s*\]/';
/**
* The default row fetching type, one of 'assoc', 'object' or 'array'.
*
* @var resource
*/
const DEFAULT_FETCH_TYPE = 'assoc';
......@@ -143,7 +144,7 @@ class pQuerySql extends pQuery implements pQueryExtension {
/**
* Find the number of resulting rows of the current query.
*
* @returns int The number of rows.
* @returns int The number of result rows.
*/
function result_count() {
$this->assert_execution();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment