Class EventList
The Event List
        
    Namespace: Cake\Event
    
    
    
      
  
      Property Summary
- 
        $_events protectedarray<Cake\Event\EventInterface<object>>Events list 
Method Summary
- 
          add() publicAdds an event to the list when event listing is enabled. 
- 
          count() publicCount elements of an object 
- 
          flush() publicEmpties the list of dispatched events. 
- 
          hasEvent() publicChecks if an event is in the list. 
- 
          offsetExists() publicWhether a offset exists 
- 
          offsetGet() publicOffset to retrieve 
- 
          offsetSet() publicOffset to set 
- 
          offsetUnset() publicOffset to unset 
Method Detail
add() ¶ public
add(Cake\Event\EventInterface<object> $event): voidAdds an event to the list when event listing is enabled.
Parameters
- 
                Cake\Event\EventInterface<object>$event
- An event to the list of dispatched events. 
Returns
voidcount() ¶ public
count(): intCount 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): boolChecks if an event is in the list.
Parameters
- 
                string$name
- Event name. 
Returns
booloffsetExists() ¶ public
offsetExists(mixed $offset): boolWhether 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): Cake\Event\EventInterface<object>|nullOffset to retrieve
Parameters
- 
                mixed$offset
- The offset to retrieve. 
Returns
Cake\Event\EventInterface<object>|nullLinks
                          https://secure.php.net/manual/en/arrayaccess.offsetget.php
                      
              offsetSet() ¶ public
offsetSet(mixed $offset, mixed $value): voidOffset 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): voidOffset to unset
Parameters
- 
                mixed$offset
- The offset to unset. 
Returns
voidLinks
                          https://secure.php.net/manual/en/arrayaccess.offsetunset.php
                      
              