PHP 클래스 Go\Aop\Support\PointcutBuilder

파일 보기 프로젝트 열기: goaop/framework

보호된 프로퍼티들

프로퍼티 타입 설명
$container Go\Core\AspectContainer

공개 메소드들

메소드 설명
__construct ( Go\Core\AspectContainer $container ) Default constructor for the builder
after ( string $pointcutExpression, Closure $advice ) Declares the "After" hook for specific pointcut expression
afterThrowing ( string $pointcutExpression, Closure $advice ) Declares the "AfterThrowing" hook for specific pointcut expression
around ( string $pointcutExpression, Closure $advice ) Declares the "Around" hook for specific pointcut expression
before ( string $pointcutExpression, Closure $advice ) Declares the "Before" hook for specific pointcut expression
declareError ( string $pointcutExpression, string $message, integer $level = E_USER_ERROR ) Declares the error message for specific pointcut expression

비공개 메소드들

메소드 설명
getPointcutId ( string $pointcutExpression ) : string Returns a unique name for pointcut expression
registerAdviceInContainer ( string $pointcutExpression, Go\Aop\Advice $advice ) General method to register advices

메소드 상세

__construct() 공개 메소드

Default constructor for the builder
public __construct ( Go\Core\AspectContainer $container )
$container Go\Core\AspectContainer Instance of container

after() 공개 메소드

Declares the "After" hook for specific pointcut expression
public after ( string $pointcutExpression, Closure $advice )
$pointcutExpression string Pointcut, e.g. "within(**)"
$advice Closure Advice to call

afterThrowing() 공개 메소드

Declares the "AfterThrowing" hook for specific pointcut expression
public afterThrowing ( string $pointcutExpression, Closure $advice )
$pointcutExpression string Pointcut, e.g. "within(**)"
$advice Closure Advice to call

around() 공개 메소드

Declares the "Around" hook for specific pointcut expression
public around ( string $pointcutExpression, Closure $advice )
$pointcutExpression string Pointcut, e.g. "within(**)"
$advice Closure Advice to call

before() 공개 메소드

Declares the "Before" hook for specific pointcut expression
public before ( string $pointcutExpression, Closure $advice )
$pointcutExpression string Pointcut, e.g. "within(**)"
$advice Closure Advice to call

declareError() 공개 메소드

Declares the error message for specific pointcut expression
public declareError ( string $pointcutExpression, string $message, integer $level = E_USER_ERROR )
$pointcutExpression string Pointcut, e.g. "within(**)"
$message string Error message to show
$level integer Error level to trigger

프로퍼티 상세

$container 보호되어 있는 프로퍼티

protected AspectContainer,Go\Core $container
리턴 Go\Core\AspectContainer