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
8be052ac
Commit
8be052ac
authored
Nov 07, 2011
by
Taddes Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated docs.
parent
729e3ced
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
pquery.sql.php
pquery.sql.php
+1
-1
pquery.template.php
pquery.template.php
+1
-1
No files found.
pquery.sql.php
View file @
8be052ac
...
...
@@ -7,7 +7,7 @@
/**
* @todo Documentation
* @property $query
Alias for {@link pQuery::variable}
.
* @property $query
The query that is being evaluated
.
*/
class
pQuerySql
extends
pQuery
implements
pQueryExtension
{
const
VARIABLE_PATTERN
=
'/\[\s*%s\s*\]/'
;
...
...
pquery.template.php
View file @
8be052ac
...
...
@@ -146,6 +146,7 @@ class pQueryTemplate extends pQuery implements pQueryExtension {
* @param string $variable The variable to replace.
* @param Block $data The data block to search in for the value.
* @returns string The variable's value if it exists, the original string otherwise.
* @todo Implement translations
*/
static
function
parse_variable
(
$variable
,
$data
)
{
$parts
=
explode
(
':'
,
$variable
);
...
...
@@ -154,7 +155,6 @@ class pQueryTemplate extends pQuery implements pQueryExtension {
switch
(
$name
)
{
case
'_'
:
// TODO: translations
return
'--translation--'
;
break
;
default
:
...
...
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