Overview

Namespaces

  • None
  • RedBeanPHP
    • Adapter
    • BeanHelper
    • Cursor
    • Driver
    • Logger
      • RDefault
    • QueryWriter
    • RedException
    • Repository
    • Util

Classes

  • AssociationManager
  • BeanCollection
  • DuplicationManager
  • Facade
  • Finder
  • Jsonable
  • LabelMaker
  • Observable
  • OODB
  • OODBBean
  • R
  • Repository
  • SimpleModel
  • SimpleModelHelper
  • TagManager
  • ToolBox

Interfaces

  • Adapter
  • BeanHelper
  • Cursor
  • Driver
  • Logger
  • Observer
  • Plugin
  • QueryWriter

Exceptions

  • RedException
  • Overview
  • Namespace
  • Class

Interface Observer

Observer.

Interface for Observer object. Implementation of the observer pattern.

Direct known implementers

RedBeanPHP\SimpleModelHelper
Namespace: RedBeanPHP
Copyright:

copyright (c) G.J.G.T. (Gabor) de Mooij and the RedBeanPHP Community. This source file is subject to the BSD/GPLv2 License that is bundled with this source code in the file license.txt.


License: BSD/GPLv2
Author: Gabor de Mooij and the RedBeanPHP community
Desc: Part of the observer pattern in RedBean
File: RedBeanPHP/Observer.php
Located at Observer.php
Methods summary
public
# onEvent( string $eventname, mixed $bean )

An observer object needs to be capable of receiving notifications. Therefore the observer needs to implement the onEvent method with two parameters: the event identifier specifying the current event and a message object (in RedBeanPHP this can also be a bean).

An observer object needs to be capable of receiving notifications. Therefore the observer needs to implement the onEvent method with two parameters: the event identifier specifying the current event and a message object (in RedBeanPHP this can also be a bean).

Parameters

$eventname
event identifier
$bean
a message sent along with the notification
API documentation generated by ApiGen