CakePHP
  • Documentation
    • Book
    • API
    • Videos
    • Logos & Trademarks
  • Business Solutions
  • Swag
  • Road Trip
  • Team
  • Community
    • Community
    • Team
    • Issues (Github)
    • YouTube Channel
    • Get Involved
    • Bakery
    • Featured Resources
    • Newsletter
    • Certification
    • My CakePHP
    • CakeFest
    • Facebook
    • Twitter
    • Help & Support
    • Forum
    • Stack Overflow
    • IRC
    • Slack
    • Paid Support
CakePHP

C CakePHP 3.8 Red Velvet API

  • Overview
  • Tree
  • Deprecated
  • Version:
    • 3.8
      • 3.8
      • 3.7
      • 3.6
      • 3.5
      • 3.4
      • 3.3
      • 3.2
      • 3.1
      • 3.0
      • 2.10
      • 2.9
      • 2.8
      • 2.7
      • 2.6
      • 2.5
      • 2.4
      • 2.3
      • 2.2
      • 2.1
      • 2.0
      • 1.3
      • 1.2

Namespaces

  • Cake
    • Auth
      • Storage
    • Cache
      • Engine
    • Collection
      • Iterator
    • Command
    • Console
      • Exception
    • Controller
      • Component
      • Exception
    • Core
      • Configure
        • Engine
      • Exception
      • Retry
    • Database
      • Driver
      • Exception
      • Expression
      • Schema
      • Statement
      • Type
    • Datasource
      • Exception
    • Error
      • Middleware
    • Event
      • Decorator
    • Filesystem
    • Form
    • Http
      • Client
        • Adapter
        • Auth
      • Cookie
      • Exception
      • Middleware
      • Session
    • I18n
      • Formatter
      • Middleware
      • Parser
    • Log
      • Engine
    • Mailer
      • Exception
      • Transport
    • Network
      • Exception
    • ORM
      • Association
      • Behavior
        • Translate
      • Exception
      • Locator
      • Rule
    • Routing
      • Exception
      • Filter
      • Middleware
      • Route
    • Shell
      • Helper
      • Task
    • TestSuite
      • Fixture
      • Stub
    • Utility
      • Exception
    • Validation
    • View
      • Exception
      • Form
      • Helper
      • Widget
  • None

Classes

  • Event
  • EventList
  • EventManager

Interfaces

  • EventDispatcherInterface
  • EventInterface
  • EventListenerInterface
  • EventManagerInterface

Traits

  • EventDispatcherTrait
  • EventManagerTrait

Class EventList

The Event List

Cake\Event\EventList implements ArrayAccess, Countable
Namespace: Cake\Event
Location: Event/EventList.php

Properties 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 )

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

Parameters
Cake\Event\Event $event
An event to the list of dispatched events.

count() public ¶

count( )

Count elements of an object

Returns
integer
The custom count as an integer.
Link
https://secure.php.net/manual/en/countable.count.php
Implementation of
Countable::count()

flush() public ¶

flush( )

Empties the list of dispatched events.

hasEvent() public ¶

hasEvent( string $name )

Checks if an event is in the list.

Parameters
string $name
Event name.
Returns
boolean

offsetExists() public ¶

offsetExists( mixed $offset )

Whether a offset exists

Parameters
mixed $offset
An offset to check for.
Returns
boolean
True on success or false on failure.
Link
https://secure.php.net/manual/en/arrayaccess.offsetexists.php
Implementation of
ArrayAccess::offsetExists()

offsetGet() public ¶

offsetGet( mixed $offset )

Offset to retrieve

Parameters
mixed $offset
The offset to retrieve.
Returns
mixed
Can return all value types.
Link
https://secure.php.net/manual/en/arrayaccess.offsetget.php
Implementation of
ArrayAccess::offsetGet()

offsetSet() public ¶

offsetSet( mixed $offset , mixed $value )

Offset to set

Parameters
mixed $offset
The offset to assign the value to.
mixed $value
The value to set.
Link
https://secure.php.net/manual/en/arrayaccess.offsetset.php
Implementation of
ArrayAccess::offsetSet()

offsetUnset() public ¶

offsetUnset( mixed $offset )

Offset to unset

Parameters
mixed $offset
The offset to unset.
Link
https://secure.php.net/manual/en/arrayaccess.offsetunset.php
Implementation of
ArrayAccess::offsetUnset()

Properties detail

$_events ¶

protected Cake\Event\Event[]

Events list

[]
Follow @CakePHP
#IRC
OpenHub
Rackspace
  • Business Solutions
  • Showcase
  • Documentation
  • Book
  • API
  • Videos
  • Logos & Trademarks
  • Community
  • Team
  • Issues (Github)
  • YouTube Channel
  • Get Involved
  • Bakery
  • Featured Resources
  • Newsletter
  • Certification
  • My CakePHP
  • CakeFest
  • Facebook
  • Twitter
  • Help & Support
  • Forum
  • Stack Overflow
  • IRC
  • Slack
  • Paid Support

Generated using CakePHP API Docs