PHP Class Demo\Example\LoggingDemo

Mostrar archivo Open project: goaop/framework Class Usage Examples

Public Methods

Method Description
execute ( mixed $task ) Executes a task and logs all incoming arguments
runByName ( string $task ) Everything is possible with AOP, so static methods can be intercepted too

Protected Methods

Method Description
perform ( mixed $task, string $level ) Protected method can be also loggable

Method Details

execute() public method

Executes a task and logs all incoming arguments
public execute ( mixed $task )
$task mixed Some specific argument

perform() protected method

Protected method can be also loggable
protected perform ( mixed $task, string $level )
$task mixed Specific task
$level string

runByName() public static method

Everything is possible with AOP, so static methods can be intercepted too
public static runByName ( string $task )
$task string Some specific argument