• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • Examples
  • File List

E:/E/GEAMP/www/openbiz/openbiz/others/Zend/Log/Filter/Message.php

00001 <?php
00024 require_once 'Zend/Log/Filter/Interface.php';
00025 
00034 class Zend_Log_Filter_Message implements Zend_Log_Filter_Interface
00035 {
00039     protected $_regexp;
00040 
00047     public function __construct($regexp)
00048     {
00049         if (@preg_match($regexp, '') === false) {
00050             require_once 'Zend/Log/Exception.php';
00051             throw new Zend_Log_Exception("Invalid regular expression '$regexp'");
00052         }
00053         $this->_regexp = $regexp;
00054     }
00055 
00062     public function accept($event)
00063     {
00064         return preg_match($this->_regexp, $event['message']) > 0;
00065     }
00066 
00067 }

Generated on Thu Apr 19 2012 17:01:17 for openbiz by  doxygen 1.7.2