Commit 4463c836 authored by Taddes Kroes's avatar Taddes Kroes

Small tweeks in documentation.

parent 73ca5987
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
/** /**
* @todo Documentation * @todo Documentation
* @property query Alias for {@link pQuery::variable}. * @property $query Alias for {@link pQuery::variable}.
*/ */
class pQuerySql extends pQuery implements pQueryExtension { class pQuerySql extends pQuery implements pQueryExtension {
const VARIABLE_PATTERN = '/\[\s*%s\s*\]/'; const VARIABLE_PATTERN = '/\[\s*%s\s*\]/';
...@@ -58,7 +58,7 @@ class pQuerySql extends pQuery implements pQueryExtension { ...@@ -58,7 +58,7 @@ class pQuerySql extends pQuery implements pQueryExtension {
* *
* @param array $variables The variables to replace. * @param array $variables The variables to replace.
* @param bool $escape Whether to escape the variable values. * @param bool $escape Whether to escape the variable values.
* @returns pQuerySql The current object. * @returns pQuerySql The current query object.
*/ */
function replace_variables($variables, $escape) { function replace_variables($variables, $escape) {
$patterns = array_map('pQuerySql::variable_pattern', array_keys($variables)); $patterns = array_map('pQuerySql::variable_pattern', array_keys($variables));
...@@ -73,7 +73,7 @@ class pQuerySql extends pQuery implements pQueryExtension { ...@@ -73,7 +73,7 @@ class pQuerySql extends pQuery implements pQueryExtension {
* Replace a set of variables with their escaped values in the current query. * Replace a set of variables with their escaped values in the current query.
* *
* @param array $variables The variables to replace. * @param array $variables The variables to replace.
* @returns pQuerySql The current object. * @returns pQuerySql The current query object.
*/ */
function set($variables) { function set($variables) {
return $this->replace_variables($variables, true); return $this->replace_variables($variables, true);
...@@ -83,7 +83,7 @@ class pQuerySql extends pQuery implements pQueryExtension { ...@@ -83,7 +83,7 @@ class pQuerySql extends pQuery implements pQueryExtension {
* Replace a set of variables with their non-escaped values in the current query. * Replace a set of variables with their non-escaped values in the current query.
* *
* @param array $variables The variables to replace. * @param array $variables The variables to replace.
* @returns pQuerySql The current object. * @returns pQuerySql The current query object.
*/ */
function set_plain($variables) { function set_plain($variables) {
return $this->replace_variables($variables, false); return $this->replace_variables($variables, false);
...@@ -103,7 +103,7 @@ class pQuerySql extends pQuery implements pQueryExtension { ...@@ -103,7 +103,7 @@ class pQuerySql extends pQuery implements pQueryExtension {
/** /**
* Execute the current query. * Execute the current query.
* *
* @returns pQuerySql The current object. * @returns pQuerySql The current query object.
*/ */
function execute() { function execute() {
self::assert_connection(); self::assert_connection();
...@@ -159,7 +159,7 @@ class pQuerySql extends pQuery implements pQueryExtension { ...@@ -159,7 +159,7 @@ class pQuerySql extends pQuery implements pQueryExtension {
} }
/** /**
* Getter for property {@link query}. * Getter for property 'query'.
*/ */
function __get($name) { function __get($name) {
if( $name == 'query' ) if( $name == 'query' )
...@@ -167,7 +167,7 @@ class pQuerySql extends pQuery implements pQueryExtension { ...@@ -167,7 +167,7 @@ class pQuerySql extends pQuery implements pQueryExtension {
} }
/** /**
* Setter for property {@link query}. * Setter for property 'query'.
*/ */
function __set($name, $value) { function __set($name, $value) {
if( $name == 'query' ) if( $name == 'query' )
...@@ -184,7 +184,7 @@ class pQuerySql extends pQuery implements pQueryExtension { ...@@ -184,7 +184,7 @@ class pQuerySql extends pQuery implements pQueryExtension {
/** /**
* Assert that the MySQL connection is opened. * Assert that the MySQL connection is opened.
* *
* @uses mysql_connect, mysql_select_db * @uses mysql_connect,mysql_select_db
*/ */
static function assert_connection() { static function assert_connection() {
// Return if the connection has already been opened // Return if the connection has already been opened
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment