Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pquery
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
pquery
Commits
4463c836
Commit
4463c836
authored
Nov 05, 2011
by
Taddes Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small tweeks in documentation.
parent
73ca5987
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
sql.php
sql.php
+8
-8
No files found.
sql.php
View file @
4463c836
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment