CakePHP
  • Documentation
    • Book
    • API
    • Videos
    • Reporting Security Issues
    • Privacy Policy
    • Logos & Trademarks
  • Business Solutions
  • Swag
  • Road Trip
  • Team
  • Community
    • Community
    • Get Involved
    • Issues (GitHub)
    • Bakery
    • Featured Resources
    • Training
    • Meetups
    • My CakePHP
    • CakeFest
    • Newsletter
    • Linkedin
    • YouTube
    • Facebook
    • Twitter
    • Mastodon
    • Help & Support
    • Forum
    • Stack Overflow
    • Slack
    • Paid Support
CakePHP

C CakePHP 2.6 API

  • Overview
  • Tree
  • Deprecated
  • Version:
    • 2.6
      • 4.2
      • 4.1
      • 4.0
      • 3.9
      • 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

Packages

  • Cake
    • Cache
      • Engine
    • Configure
    • Console
      • Command
        • Task
    • Controller
      • Component
        • Acl
        • Auth
    • Core
    • Error
    • Event
    • I18n
    • Log
      • Engine
    • Model
      • Behavior
      • Datasource
        • Database
        • Session
      • Validator
    • Network
      • Email
      • Http
    • Routing
      • Filter
      • Route
    • TestSuite
      • Coverage
      • Fixture
      • Reporter
    • Utility
    • View
      • Helper

Classes

  • CakeEvent
  • CakeEventManager

Interfaces

  • CakeEventListener

Interface CakeEventListener

Objects implementing this interface should declare the implementedEvents function to notify the event manager what methods should be called when an event is triggered.

Direct Implementers
  • BaseAuthenticate
  • BehaviorCollection
  • ComponentCollection
  • Controller
  • Dispatcher
  • DispatcherFilter
  • HelperCollection
  • Model
Indirect Implementers
  • AclNode
  • Aco
  • FormAuthenticate
  • Aro
  • AssetDispatcher
  • BasicAuthenticate
  • BlowfishAuthenticate
  • CacheDispatcher
  • CakeTestModel
  • ControllerTestDispatcher
  • DigestAuthenticate
Package: Cake\Event
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Location: Cake/Event/CakeEventListener.php

Method Summary

  • implementedEvents() public

    Returns a list of events this object is implementing. When the class is registered in an event manager, each individual method will be associated with the respective event.

Method Detail

implementedEvents() public ¶

implementedEvents( )

Returns a list of events this object is implementing. When the class is registered in an event manager, each individual method will be associated with the respective event.

Example:

public function implementedEvents() {
    return array(
        'Order.complete' => 'sendEmail',
        'Article.afterBuy' => 'decrementInventory',
        'User.onRegister' => array('callable' => 'logRegistration', 'priority' => 20, 'passParams' => true)
    );
}
Returns
array

associative array or event key names pointing to the function that should be called in the object when the respective event is fired


OpenHub
Rackspace
Rackspace
  • Business Solutions
  • Showcase
  • Documentation
  • Book
  • API
  • Videos
  • Reporting Security Issues
  • Privacy Policy
  • Logos & Trademarks
  • Community
  • Get Involved
  • Issues (GitHub)
  • Bakery
  • Featured Resources
  • Training
  • Meetups
  • My CakePHP
  • CakeFest
  • Newsletter
  • Linkedin
  • YouTube
  • Facebook
  • Twitter
  • Mastodon
  • Help & Support
  • Forum
  • Stack Overflow
  • Slack
  • Paid Support

Generated using CakePHP API Docs