Advertisement
Serafim

Untitled

Sep 4th, 2013
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. protected function callMethod(string $caller = null)
  2. {
  3.   $caller?: return;
  4.   preg_match_all('#jsc:\/\/([a-z]+):([a-z]+)@(.*?)#', $caller, $m);
  5.   !(count($m) < 3)?: return;
  6.  
  7.   [$s, $class, $method, $args] = list($m);
  8.  
  9.   return forward_static_call([$class, $method], explode(',', $args));
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement