Пример #1
0
 public function matches(Sabel_Aspect_Pointcut $pointcut, $method, $class)
 {
     $class = new Sabel_Reflection_Class($class);
     if ($pointcut === null) {
         throw new Sabel_Exception_Runtime("pointcut can't be null");
     }
     if ($pointcut->getClassMatcher()->matches($class)) {
         return $pointcut->getMethodMatcher()->matches($method, $class);
     }
     return false;
 }
Пример #2
0
 public function setClassMatchPattern($pattern)
 {
     $this->pointcut->getClassMatcher()->setPattern($pattern);
 }