Class EventList
The Event List
        
    Namespace: Cake\Event
    
    
    
      
  
      Property Summary
- 
        $_events protected
Cake\Event\Event[]Events list
 
Method Summary
- 
          
add() public
Adds an event to the list when event listing is enabled.
 - 
          
count() public
Count elements of an object
 - 
          
flush() public
Empties the list of dispatched events.
 - 
          
hasEvent() public
Checks if an event is in the list.
 - 
          
offsetExists() public
Whether a offset exists
 - 
          
offsetGet() public
Offset to retrieve
 - 
          
offsetSet() public
Offset to set
 - 
          
offsetUnset() public
Offset to unset
 
Method Detail
add() ¶ public
add(Cake\Event\Event $event): void
      Adds an event to the list when event listing is enabled.
Parameters
- 
                
Cake\Event\Event$event An event to the list of dispatched events.
Returns
voidcount() ¶ public
count(): int
      Count elements of an object
Returns
intThe custom count as an integer.
Links
                          https://secure.php.net/manual/en/countable.count.php
                      
              hasEvent() ¶ public
hasEvent(string $name): bool
      Checks if an event is in the list.
Parameters
- 
                
string$name Event name.
Returns
booloffsetExists() ¶ public
offsetExists(mixed $offset): bool
      Whether a offset exists
Parameters
- 
                
mixed$offset An offset to check for.
Returns
boolTrue on success or false on failure.
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
mixedCan return all value types.
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
voidLinks
                          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
voidLinks
                          https://secure.php.net/manual/en/arrayaccess.offsetunset.php