PHP Class Demo\Example\LoggingDemo

Afficher le fichier Open project: goaop/framework Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

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

Method Details

execute() public méthode

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

perform() protected méthode

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

runByName() public static méthode

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