Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9587c3f

Browse files
author
tobiasz.cudnik
committed
* added __callStatic for phpQuery class static plugins namespace
1 parent 0d91255 commit 9587c3f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

phpQuery/phpQuery.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,13 @@ public static function php($code) {
10491049
public static function code($type, $code) {
10501050
return "<$type><!-- ".trim($code)." --></$type>";
10511051
}
1052+
1053+
public static function __callStatic($method, $params) {
1054+
return call_user_func_array(
1055+
array(phpQuery::$plugins, $method),
1056+
$params
1057+
);
1058+
}
10521059
}
10531060
/**
10541061
* Plugins static namespace class.

0 commit comments

Comments
 (0)