예제 #1
0
 public static function __callStatic($name, $args)
 {
     $class_name = get_called_class();
     $class_id = \GCore\Libs\Str::uncamilize(\GCore\Libs\Base::getClassName($class_name));
     $class_id .= '_';
     if (method_exists(\GCore\Helpers\Theme::getInstance(), $class_id . $name)) {
         return call_user_func_array(array(\GCore\Helpers\Theme::getInstance(), $class_id . $name), $args);
     }
     if (method_exists($class_name, $class_id . $name)) {
         return call_user_func_array(array($class_name, $class_id . $name), $args);
     }
 }