PHP Class MockAction

Exibir arquivo Open project: lucatume/wp-browser Class Usage Examples

Public Properties

Property Type Description
$debug
$events

Public Methods

Method Description
__construct ( $debug ) PHP5 constructor.
action ( $arg )
action2 ( $arg )
current_filter ( )
filter ( $arg )
filter2 ( $arg )
filter_append ( $arg )
filterall ( $tag, $arg = null )
get_args ( ) return an array of args passed in calls to this action
get_call_count ( $tag = '' ) return a count of the number of times the action was called since the last reset
get_events ( ) return a list of all the actions, tags and args
get_tags ( ) return an array of the tags that triggered calls to this action
reset ( )

Method Details

__construct() public method

PHP5 constructor.
public __construct ( $debug )

action() public method

public action ( $arg )

action2() public method

public action2 ( $arg )

current_filter() public method

public current_filter ( )

filter() public method

public filter ( $arg )

filter2() public method

public filter2 ( $arg )

filter_append() public method

public filter_append ( $arg )

filterall() public method

public filterall ( $tag, $arg = null )

get_args() public method

return an array of args passed in calls to this action
public get_args ( )

get_call_count() public method

return a count of the number of times the action was called since the last reset
public get_call_count ( $tag = '' )

get_events() public method

return a list of all the actions, tags and args
public get_events ( )

get_tags() public method

return an array of the tags that triggered calls to this action
public get_tags ( )

reset() public method

public reset ( )

Property Details

$debug public_oe property

public $debug

$events public_oe property

public $events