W3cubDocs

/CakePHP 4.4

Class EventList

The Event List

Namespace: Cake\Event

Property Summary

  • $_events protected
    arrayCake\Event\EventInterface>

    Events list

Method Summary

Method Detail

add() public

add(Cake\Event\EventInterface $event): void

Adds an event to the list when event listing is enabled.

Parameters

Cake\Event\EventInterface $event

An event to the list of dispatched events.

Returns

void

count() public

count(): int

Count elements of an object

Returns

int

Links

https://secure.php.net/manual/en/countable.count.php

flush() public

flush(): void

Empties the list of dispatched events.

Returns

void

hasEvent() public

hasEvent(string $name): bool

Checks if an event is in the list.

Parameters

string $name

Event name.

Returns

bool

offsetExists() public

offsetExists(mixed $offset): bool

Whether a offset exists

Parameters

mixed $offset

An offset to check for.

Returns

bool

Links

https://secure.php.net/manual/en/arrayaccess.offsetexists.php

offsetGet() public

offsetGet(mixed $offset): mixed

Offset to retrieve

Parameters

mixed $offset

The offset to retrieve.

Returns

mixed

Links

https://secure.php.net/manual/en/arrayaccess.offsetget.php

offsetSet() public

offsetSet(mixed $offset, mixed $value): void

Offset to set

Parameters

mixed $offset

The offset to assign the value to.

mixed $value

The value to set.

Returns

void

Links

https://secure.php.net/manual/en/arrayaccess.offsetset.php

offsetUnset() public

offsetUnset(mixed $offset): void

Offset to unset

Parameters

mixed $offset

The offset to unset.

Returns

void

Links

https://secure.php.net/manual/en/arrayaccess.offsetunset.php

Property Detail

$_events protected

Events list

Type

arrayCake\Event\EventInterface>

© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/class-Cake.Event.EventList.html