QueueLogBehavior

Type
Class
Namespace
craft\queue
Inherits
craft\queue\QueueLogBehavior » craft\queue\VerboseBehavior » yii\queue\cli\VerboseBehavior (opens new window) » yii\base\Behavior (opens new window) » yii\base\BaseObject (opens new window)
Implements
yii\base\Configurable (opens new window)
Since
3.0.0

Queue Log Behavior

View source (opens new window)

# Public Properties

# Public Methods

Method Description
__call() (opens new window) Calls the named method which is not a class method.
__construct() (opens new window) Constructor.
__get() (opens new window) Returns the value of an object property.
__isset() (opens new window) Checks if a property is set, i.e. defined and not null.
__set() (opens new window) Sets value of an object property.
__unset() (opens new window) Sets an object property to null.
afterError()
afterExec()
attach() (opens new window) Attaches the behavior object to the component.
beforeExec()
canGetProperty() (opens new window) Returns a value indicating whether a property can be read.
canSetProperty() (opens new window) Returns a value indicating whether a property can be set.
className() (opens new window) Returns the fully qualified name of this class.
detach() (opens new window) Detaches the behavior object from the component.
events() Declares event handlers for the owner (opens new window)'s events.
hasMethod() (opens new window) Returns a value indicating whether a method is defined.
hasProperty() (opens new window) Returns a value indicating whether a property is defined.
init() (opens new window) Initializes the object.
workerStart() (opens new window)
workerStop() (opens new window)

# afterError()

View source (opens new window)

Arguments

# afterExec()

View source (opens new window)

Arguments

# beforeExec()

View source (opens new window)

Arguments

# events()

Declares event handlers for the owner (opens new window)'s events.

Child classes may override this method to declare what PHP callbacks should be attached to the events of the owner (opens new window) component.

The callbacks will be attached to the owner (opens new window)'s events when the behavior is attached to the owner; and they will be detached from the events when the behavior is detached from the component.

The callbacks can be any of the following:

  • method in this behavior: 'handleClick', equivalent to [$this, 'handleClick']
  • object method: [$object, 'handleClick']
  • static method: ['Page', 'handleClick']
  • anonymous function: function ($event) { ... }

The following is an example:

[
    Model::EVENT_BEFORE_VALIDATE => 'myBeforeValidate',
    Model::EVENT_AFTER_VALIDATE => 'myAfterValidate',
]

View source (opens new window)

Returns

array (opens new window) – Events (array keys) and the corresponding event handler methods (array values).

# Protected Methods