Abstract.php

Go to the documentation of this file.
00001 <?php
00002 
00031 abstract class Robo47_Log_Writer_Abstract
00032 extends Zend_Log_Writer_Abstract
00033 {
00034 
00040     public function removeFilter($class)
00041     {
00042         foreach ($this->_filters as $key => $filter) {
00043             if (is_string($class)) {
00044                 if ($filter instanceof $class) {
00045                     unset($this->_filters[$key]);
00046                 }
00047             } elseif (is_object($class)) {
00048                 if ($filter === $class) {
00049                     unset($this->_filters[$key]);
00050                 }
00051             }
00052         }
00053         return $this;
00054     }
00055 
00060     public function getFilters()
00061     {
00062         return $this->_filters;
00063     }
00064 }