Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pquery
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Taddeüs Kroes
pquery
Commits
4463c836
Commit
4463c836
authored
13 years ago
by
Taddes Kroes
Browse files
Options
Downloads
Patches
Plain Diff
Small tweeks in documentation.
parent
73ca5987
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sql.php
+8
-8
8 additions, 8 deletions
sql.php
with
8 additions
and
8 deletions
sql.php
+
8
−
8
View file @
4463c836
...
...
@@ -7,7 +7,7 @@
/**
* @todo Documentation
* @property query Alias for {@link pQuery::variable}.
* @property
$
query Alias for {@link pQuery::variable}.
*/
class
pQuerySql
extends
pQuery
implements
pQueryExtension
{
const
VARIABLE_PATTERN
=
'/\[\s*%s\s*\]/'
;
...
...
@@ -58,7 +58,7 @@ class pQuerySql extends pQuery implements pQueryExtension {
*
* @param array $variables The variables to replace.
* @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
)
{
$patterns
=
array_map
(
'pQuerySql::variable_pattern'
,
array_keys
(
$variables
));
...
...
@@ -73,7 +73,7 @@ class pQuerySql extends pQuery implements pQueryExtension {
* Replace a set of variables with their escaped values in the current query.
*
* @param array $variables The variables to replace.
* @returns pQuerySql The current object.
* @returns pQuerySql The current
query
object.
*/
function
set
(
$variables
)
{
return
$this
->
replace_variables
(
$variables
,
true
);
...
...
@@ -83,7 +83,7 @@ class pQuerySql extends pQuery implements pQueryExtension {
* Replace a set of variables with their non-escaped values in the current query.
*
* @param array $variables The variables to replace.
* @returns pQuerySql The current object.
* @returns pQuerySql The current
query
object.
*/
function
set_plain
(
$variables
)
{
return
$this
->
replace_variables
(
$variables
,
false
);
...
...
@@ -103,7 +103,7 @@ class pQuerySql extends pQuery implements pQueryExtension {
/**
* Execute the current query.
*
* @returns pQuerySql The current object.
* @returns pQuerySql The current
query
object.
*/
function
execute
()
{
self
::
assert_connection
();
...
...
@@ -159,7 +159,7 @@ class pQuerySql extends pQuery implements pQueryExtension {
}
/**
* Getter for property
{@link
query
}
.
* Getter for property
'
query
'
.
*/
function
__get
(
$name
)
{
if
(
$name
==
'query'
)
...
...
@@ -167,7 +167,7 @@ class pQuerySql extends pQuery implements pQueryExtension {
}
/**
* Setter for property
{@link
query
}
.
* Setter for property
'
query
'
.
*/
function
__set
(
$name
,
$value
)
{
if
(
$name
==
'query'
)
...
...
@@ -184,7 +184,7 @@ class pQuerySql extends pQuery implements pQueryExtension {
/**
* Assert that the MySQL connection is opened.
*
* @uses mysql_connect,
mysql_select_db
* @uses mysql_connect,mysql_select_db
*/
static
function
assert_connection
()
{
// Return if the connection has already been opened
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment