Class OpenID_Observer_Log

Description

An observer based on PEAR's Log package. You may either pass in your own Log instance to the constructor, or allow the default file driver to write to /tmp/OpenID_Observer_Log.log by default.

Located in /OpenID/Observer/Log.php (line 35)

OpenID_Observer_Common
   |
   --OpenID_Observer_Log
Variable Summary
Log $log
Method Summary
void __construct ([ $log = null], [ $events = array()])
void update ( $event)
Variables
Log $log = null (line 42)

Holds the instance of Log

  • access: protected

Inherited Variables

Inherited from OpenID_Observer_Common

OpenID_Observer_Common::$events
Methods
Constructor __construct (line 54)

Allows you to pass in a Log instance and an array of events to log. If no instance of Log is given, the 'file' Log driver will be used, and write to /tmp/OpenID_Observer_Log.log.

  • access: public
void __construct ([ $log = null], [ $events = array()])
  • Log $log: Instance of Log, optional
  • array $events: Custom list of events to log
update (line 73)

Logs the event

  • access: public
void update ( $event)
  • array $event: Array containing 'name' and 'data' keys

Redefinition of:
OpenID_Observer_Common::update()
Acts upon an event that just occured

Inherited Methods

Inherited From OpenID_Observer_Common

OpenID_Observer_Common::getEvents()
OpenID_Observer_Common::setEvents()
OpenID_Observer_Common::update()

Documentation generated on Tue, 15 Dec 2009 19:00:54 -0800 by phpDocumentor 1.4.3