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
7ddcaf4c
Commit
7ddcaf4c
authored
Nov 14, 2011
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applied name change for util load fucntion.
parent
2d183719
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
13 deletions
+15
-13
pquery.css.php
pquery.css.php
+1
-1
pquery.js.php
pquery.js.php
+1
-1
pquery.php
pquery.php
+12
-10
pquery.template.php
pquery.template.php
+1
-1
No files found.
pquery.css.php
View file @
7ddcaf4c
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*/
*/
__p
::
require_plugins
(
'cache'
);
__p
::
require_plugins
(
'cache'
);
__p
::
load_util
(
'CssParser'
);
__p
::
load_util
s
(
'CssParser'
);
/**
/**
* @todo Documentation
* @todo Documentation
...
...
pquery.js.php
View file @
7ddcaf4c
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*/
*/
__p
::
require_plugins
(
'cache'
);
__p
::
require_plugins
(
'cache'
);
__p
::
load_util
(
'jshrink'
);
__p
::
load_util
s
(
'jshrink'
);
/**
/**
* @todo Documentation
* @todo Documentation
...
...
pquery.php
View file @
7ddcaf4c
...
@@ -147,11 +147,12 @@ class pQuery {
...
@@ -147,11 +147,12 @@ class pQuery {
}
}
/**
/**
* Try to load an utility file.
* Try to load one or more utility files.
*
* @param string $basename
*/
*/
static
function
load_util
(
$basename
)
{
static
function
load_utils
(
/* $basename1 $basename2, ... */
)
{
$files
=
func_get_args
();
foreach
(
$files
as
$basename
)
{
$path
=
PQUERY_ROOT
.
pQueryConfig
::
UTILS_FOLDER
.
$basename
.
'.php'
;
$path
=
PQUERY_ROOT
.
pQueryConfig
::
UTILS_FOLDER
.
$basename
.
'.php'
;
if
(
!
file_exists
(
$path
)
)
{
if
(
!
file_exists
(
$path
)
)
{
...
@@ -161,6 +162,7 @@ class pQuery {
...
@@ -161,6 +162,7 @@ class pQuery {
include_once
$path
;
include_once
$path
;
}
}
}
/**
/**
* Try to load the file containing the utility class for a specific variable type.
* Try to load the file containing the utility class for a specific variable type.
...
...
pquery.template.php
View file @
7ddcaf4c
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
* @package pQuery
* @package pQuery
*/
*/
__p
::
load_util
(
'block'
);
__p
::
load_util
s
(
'block'
);
/**
/**
* @todo Documentation
* @todo Documentation
...
...
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