Example #1
0
 public static function joinPoint($mode, $class, $method, $args = null, $defaultValue = null)
 {
     $value = Aspect::findPointCut($mode, $class, $method, $args);
     if (Session::isPluginLoaded("mAchievement") and $mode == "after") {
         Achievement::findPointCut($class, $method, $args);
     }
     if ($value === null) {
         return $defaultValue;
     }
     return $value;
 }