예제 #1
0
파일: Pointcuts.php 프로젝트: reoring/sabel
 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);
 }