Class Laika_Exception_Handler

Description

Implements interfaces:

  • SplSubject (internal interface)

Laika_Exception_Handler class.

Intercepts uncaught exceptions. Notifies Observers of intercepted exceptions.

  • implements: SplSubject
  • extends: Laika_Singleton

Located in /library/core/Exception_Handler.php (line 26)

Laika
   |
   --Laika_Singleton
      |
      --Laika_Exception_Handler
Variable Summary
static object $instance
Exception $exception
array $observers
Method Summary
void attach (SplObserver $observer)
void detach (SplObserver $observer)
void display (mixed $trace, mixed $file, mixed $line)
void handle (Exception $e)
void notify ()
Variables
static object $instance (line 38)

instance of Laika_Exception_Handler

  • access: protected

Redefinition of:
Laika_Singleton::$instance
instance
Exception $exception (line 51)

Uncaught exception

  • access: public
array $observers = array() (line 44)

Array of SplObserver objects

  • access: private
Methods
attach (line 63)

Attaches an SplObserver object to the handler

  • access: public
void attach (SplObserver $observer)
  • SplObserver $observer

Implementation of:
SplSubject::attach
detach (line 74)

Detaches the SplObserver object from the handler

  • access: public
void detach (SplObserver $observer)
  • SplObserver $observer

Implementation of:
SplSubject::detach
display (line 134)

display function.

  • access: public
void display (mixed $trace, mixed $file, mixed $line)
  • mixed $trace
  • mixed $file
  • mixed $line
handle (line 96)

The Exception Handler calls notify() and outputs a notice onscreen if DEVELOPMENT_ENVIRONMENT is set

  • access: public
void handle (Exception $e)
  • Exception $e
notify (line 84)

Notify all observers

  • access: public
void notify ()

Implementation of:
SplSubject::notify

Inherited Methods

Inherited From Laika_Singleton

Laika_Singleton::__construct()
Laika_Singleton::from_array()
Laika_Singleton::get()
Laika_Singleton::init()
Laika_Singleton::serialize_me()
Laika_Singleton::set()
Laika_Singleton::switch_instance()
Laika_Singleton::to_array()
Laika_Singleton::unserialize_me()
Laika_Singleton::__call()
Laika_Singleton::__clone()

Inherited From Laika

Laika::__construct()
Laika::from_array()
Laika::img()
Laika::link_to()
Laika::pop_assoc()
Laika::pop_index()
Laika::redirect_to()
Laika::reflect()
Laika::release()
Laika::to_array()
Laika::version()
Laika::__call()
Laika::__get()
Laika::__set()
Class Constants

Inherited Constants

Inherited from Laika

Laika::LAIKA_RELEASE
Laika::LAIKA_VERSION

Documentation generated on Sat, 19 May 2012 02:17:00 -0400 by phpDocumentor 1.4.4