Overview  Package  Tree HessianPHP

HessianPHP.Filters

Class FilterChain

HessianPHP.Filters.FilterChain

class FilterChain

Simple chain of responsibility implementation that executes a series of filters in order

Author:
Vegeta
Version:
1.0

Field Summary
public var$filters
public var$current
Method Summary
public voidFilterChain
public voidisChainDone
public voiddoFilter

Recursive method that continues the execution of the next filter in the chain Includes two chain finalization checks before and after the filter execution because an explicit call to doFilter() inside the filter object can end the execution

Field Detail

filters

public var $filters

current

public var $current
Method Detail

FilterChain()

public void FilterChain(var $filters)
Parameters:
$filters

isChainDone()

public void isChainDone()

doFilter()

public void doFilter(mixed context)

Recursive method that continues the execution of the next filter in the chain Includes two chain finalization checks before and after the filter execution because an explicit call to doFilter() inside the filter object can end the execution

Parameters:
context - context the filter works with

Overview  Package  Tree HessianPHP