[pLog-svn] r4793 - plog/branches/lifetype-1.2/class/cache/Cache_Lite

oscar at devel.lifetype.net oscar at devel.lifetype.net
Tue Feb 20 17:08:24 EST 2007


Author: oscar
Date: 2007-02-20 17:08:24 -0500 (Tue, 20 Feb 2007)
New Revision: 4793

Modified:
   plog/branches/lifetype-1.2/class/cache/Cache_Lite/Lite.php
Log:
There is no need for the Lite class to extend Loggable.

Modified: plog/branches/lifetype-1.2/class/cache/Cache_Lite/Lite.php
===================================================================
--- plog/branches/lifetype-1.2/class/cache/Cache_Lite/Lite.php	2007-02-20 22:04:33 UTC (rev 4792)
+++ plog/branches/lifetype-1.2/class/cache/Cache_Lite/Lite.php	2007-02-20 22:08:24 UTC (rev 4793)
@@ -1,7 +1,5 @@
 <?php
 
-lt_include( PLOG_CLASS_PATH."class/object/loggable.class.php" );
-
 /**
 * \ingroup Cache
 *
@@ -30,7 +28,7 @@
 define('CACHE_LITE_ERROR_RETURN', 1);
 define('CACHE_LITE_ERROR_DIE', 8);
 
-class Cache_Lite extends Loggable
+class Cache_Lite
 {
 
     // --- Private properties ---
@@ -283,7 +281,6 @@
     */
     function Cache_Lite($options = array(NULL))
     {
-        $this->Loggable();
         foreach($options as $key => $value) {
             $this->setOption($key, $value);
         }
@@ -538,7 +535,9 @@
     */
     function raiseError($msg, $code)
     {
-        $this->log->error($msg, LOGGER_PRIO_ERROR);
+		lt_include( PLOG_CLASS_PATH."class/object/loggable.class.php" );	
+		$log =& LoggerManager::getLogger();
+        $log->error($msg, LOGGER_PRIO_ERROR);
     }
     
     /**



More information about the pLog-svn mailing list