ICanBoogie
  • Documentation
  • API Reference
  • Operation 2.2.x
Namespaces
  • ICanBoogie
    • Operation
      • OperationDispatcher
Classes
  • BeforeControlEvent
  • BeforeProcessEvent
  • BeforeValidateEvent
  • ControlEvent
  • FailureEvent
  • GetFormEvent
  • Hooks
  • OperationDispatcher
  • PingOperation
  • ProcessEvent
  • RescueEvent
  • Response
  • ValidateEvent
Interfaces
  • Exception
Traits
  • ControlEventTrait
  • ValidateEventTrait
Exceptions
  • Failure
  • FormHasExpired
  • FormNotFound

Class FailureEvent

Event class for the ICanBoogie\Operation::failure event.

ICanBoogie\Event
┗ ICanBoogie\Operation\FailureEvent uses ICanBoogie\Accessor\AccessorTrait (not available)
Namespace: ICanBoogie\Operation
Located at FailureEvent.php

Methods summary

public __construct( ICanBoogie\Operation $target, string $type, ICanBoogie\HTTP\Request $request )

The event is constructed with the type failure.

The event is constructed with the type failure.

Parameters

$target
$type
$request
protected get_is_control( void )
protected get_is_validate( void )

Constants summary

TYPE_CONTROL : string

The failure occurred during \ICanBoogie\Operation::control().

The failure occurred during \ICanBoogie\Operation::control().

'control'
TYPE_VALIDATE : string

The failure occurred during \ICanBoogie\Operation::validate().

The failure occurred during \ICanBoogie\Operation::validate().

'validate'

Properties summary

public $type : string

Type of failure, either ICanBoogie\Operation\FailureEvent::TYPE_CONTROL or TYPE_VALIDATION.

Type of failure, either ICanBoogie\Operation\FailureEvent::TYPE_CONTROL or TYPE_VALIDATION.


		
public $request : ICanBoogie\HTTP\Request

The request that triggered the operation.

The request that triggered the operation.


		

Magic properties

public read-only $is_control : boolean

true if failure occurred during \ICanBoogie\Operation::control(), false otherwise.

public read-only $is_validate : boolean

true if failure occurred during \ICanBoogie\Operation::validate(), false otherwise.

Operation 2.2.x – Check on GitHub – API documentation generated by ApiGen