PHP Класс Go\Core\GoAspectContainer

Наследование: extends Container, implements Go\Core\AspectContainer
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$maxTimestamp integer Cached timestamp for resources
$resources array List of resources for application

Открытые методы

Метод Описание
__construct ( ) Constructor for container
addResource ( $resource ) Add an AOP resource to the container
getAdvisor ( string $id ) : Go\Aop\Advisor Returns an advisor by identifier
getAspect ( string $aspectName ) : Go\Aop\Aspect Returns an aspect by id or class name
getPointcut ( string $id ) : Go\Aop\Pointcut Returns a pointcut by identifier
getResources ( ) : array Returns list of AOP resources
isFresh ( integer $timestamp ) : boolean Checks the freshness of AOP cache
registerAdvisor ( Go\Aop\Advisor $advisor, string $id ) Store the advisor in the container
registerAspect ( Go\Aop\Aspect $aspect ) Register an aspect in the container
registerPointcut ( Go\Aop\Pointcut $pointcut, string $id ) Store the pointcut in the container

Описание методов

__construct() публичный Метод

Constructor for container
public __construct ( )

addResource() публичный Метод

Resources is used to check the freshness of AOP cache
public addResource ( $resource )

getAdvisor() публичный Метод

Returns an advisor by identifier
public getAdvisor ( string $id ) : Go\Aop\Advisor
$id string Advisor identifier
Результат Go\Aop\Advisor

getAspect() публичный Метод

Returns an aspect by id or class name
public getAspect ( string $aspectName ) : Go\Aop\Aspect
$aspectName string Aspect name
Результат Go\Aop\Aspect

getPointcut() публичный Метод

Returns a pointcut by identifier
public getPointcut ( string $id ) : Go\Aop\Pointcut
$id string Pointcut identifier
Результат Go\Aop\Pointcut

getResources() публичный Метод

Returns list of AOP resources
public getResources ( ) : array
Результат array

isFresh() публичный Метод

Checks the freshness of AOP cache
public isFresh ( integer $timestamp ) : boolean
$timestamp integer
Результат boolean Whether or not concrete file is fresh

registerAdvisor() публичный Метод

Store the advisor in the container
public registerAdvisor ( Go\Aop\Advisor $advisor, string $id )
$advisor Go\Aop\Advisor Instance
$id string Key for advisor

registerAspect() публичный Метод

Register an aspect in the container
public registerAspect ( Go\Aop\Aspect $aspect )
$aspect Go\Aop\Aspect Instance of concrete aspect

registerPointcut() публичный Метод

Store the pointcut in the container
public registerPointcut ( Go\Aop\Pointcut $pointcut, string $id )
$pointcut Go\Aop\Pointcut Instance
$id string Key for pointcut

Описание свойств

$maxTimestamp защищенное свойство

Cached timestamp for resources
protected int $maxTimestamp
Результат integer

$resources защищенное свойство

List of resources for application
protected array $resources
Результат array