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

Class: Kimono_Error

Source Location: /include/error.php

Class Overview


error raising, buffering and callback handling


Author(s):

Methods



Class Details

[line 16]
error raising, buffering and callback handling

NOTE: Kimono_Error is a Singleton class and must be accessed only through the static function Kimono_Error::Instance()




Tags:

todo:  consider the use of debug_backtrace() to track errors more easily


[ Top ]


Class Methods


constructor __construct [line 27]

Kimono_Error __construct( )



Tags:

static:  


[ Top ]

destructor __destruct [line 39]

void __destruct( )

clean out left-over errors from buffer as a safety precaution if script execution dies before the user clears the buffer.



[ Top ]

method ErrorBuffer [line 121]

void ErrorBuffer( mixed $enabled)

enable/disable error buffering, NOTE: disabling buffering will immediately empty buffered errors



[ Top ]

method ErrorLevel [line 129]

void ErrorLevel( mixed $errorlevel)



[ Top ]

method Instance [line 48]

void Instance( )

initiate Singleton behaviour and return instance



Tags:

static:  


[ Top ]

method isVisible [line 110]

void isVisible( mixed $error_level)

returns TRUE if error should be shown and FALSE if it shouldn't



Tags:

todo:  chicken-in-egg problem


[ Top ]

method LastPHPError [line 159]

void LastPHPError( [mixed $error = ''], [mixed $file = ''])

get or set the last php error, used in services code to fetch the last error



[ Top ]

method RaiseError [line 59]

void RaiseError( mixed $errorstring, [mixed $errorlevel = KIMONO_ERRORLEVEL_ERROR], [mixed $facility = KIMONO_LOG_FACILITY_KIMONO])

create error and run/buffer it, log errors and warnings



[ Top ]

method RegisterCallback [line 137]

void RegisterCallback( mixed $callback)



Tags:

todo:  make it possible to register static class functions


[ Top ]

method RunCallbacks [line 82]

void RunCallbacks( [mixed $error_object = NULL])

clean out error buffer if it's disabled and contains objects, proceed to output $error_object if set



[ Top ]

method UnregisterCallback [line 145]

void UnregisterCallback( mixed $callback)



[ Top ]


Documentation generated on Fri, 8 Apr 2005 18:27:48 +0200 by phpDocumentor 1.3.0RC3