ICanBoogie
  • Documentation
  • API Reference
  • Operation 4.0.x
Namespaces
  • ICanBoogie
    • Operation
Classes
  • BeforeControlEvent
  • BeforeProcessEvent
  • BeforeValidateEvent
  • ControlEvent
  • FailureEvent
  • GetFormEvent
  • Hooks
  • OperationRouteDefinition
  • OperationRouteDispatcher
  • 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 Operation/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 ) : boolean

Whether the failure occurred during control.

Whether the failure occurred during control.

Returns

boolean
protected get_is_validate( void ) : boolean

Whether the failure occurred during validate.

Whether the failure occurred during validate.

Returns

boolean

Constants summary

TYPE : string
'failure'
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 4.0.x – Check on GitHub – API documentation generated by ApiGen