self::dataRemoveNode($node, $documentID); } } } /** * Plugins static namespace class. * * @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com> * @package PhpQuery * @todo move plugin methods here (as statics) */ class PhpQueryPlugins { public function __call($method, $args) { if (isset(PhpQuery::$extendStaticMethods[$method])) { $return = call_user_func_array(PhpQuery::$extendStaticMethods[$method], $args); } else { if (isset(PhpQuery::$pluginsStaticMethods[$method])) { $class = PhpQuery::$pluginsStaticMethods[$method]; $realClass = "\\PhpQuery\\Plugin\\Util{$class}"; $return = call_user_func_array(array($realClass, $method), $args); return isset($return) ? $return : $this; } else { throw new \Exception("Method '{$method}' doesnt exist"); } } } } PhpQuery::$plugins = new PhpQueryPlugins();