Commit 7ddcaf4c authored by Taddeus Kroes's avatar Taddeus Kroes

Applied name change for util load fucntion.

parent 2d183719
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
*/ */
__p::require_plugins('cache'); __p::require_plugins('cache');
__p::load_util('CssParser'); __p::load_utils('CssParser');
/** /**
* @todo Documentation * @todo Documentation
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
*/ */
__p::require_plugins('cache'); __p::require_plugins('cache');
__p::load_util('jshrink'); __p::load_utils('jshrink');
/** /**
* @todo Documentation * @todo Documentation
......
...@@ -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.
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* @package pQuery * @package pQuery
*/ */
__p::load_util('block'); __p::load_utils('block');
/** /**
* @todo Documentation * @todo Documentation
......
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