OpenID
[ class tree: OpenID ] [ index: OpenID ] [ all elements ]

Class: OpenID_Observer_Log

Source Location: /OpenID-0.4.0/OpenID/Observer/Log.php

Class Overview

OpenID_Observer_Common
   |
   --OpenID_Observer_Log

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.


Author(s):

Copyright:

  • 2009 Bill Shupp

Variables

Methods


Inherited Variables

Inherited Methods

Class: OpenID_Observer_Common

OpenID_Observer_Common::getEvents()
Gets the current array of events
OpenID_Observer_Common::setEvents()
Sets a custom array of events to act upon
OpenID_Observer_Common::update()
Acts upon an event that just occured

Class Details

[line 35]
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.


[ Top ]


Class Variables

$log =  null

[line 42]

Holds the instance of Log
  • Access: protected

Type:   Log


[ Top ]



Method Detail

__construct (Constructor)   [line 54]

void __construct( [Log $log = null], [array $events = array()])

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

Parameters:

Log   $log   —  Instance of Log, optional
array   $events   —  Custom list of events to log

[ Top ]

update   [line 73]

void update( array $event)

Logs the event
  • Access: public

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

Parameters:

array   $event   —  Array containing 'name' and 'data' keys

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:57:49 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.