Log/Filter/Priority.php
- category
- Zend
- copyright
- Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- license
- http://framework.zend.com/license/new-bsd New BSD License
- package
- Zend_Log
- subpackage
- Filter
- version
- $Id: Priority.php 20260 2010-01-13 18:29:22Z ralph $
- Classes
- Zend_Log_Filter_Priority
Description
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
Zend_Log_Filter_Priority
- Extends from
- Zend_Log_Filter_Abstract
- category
- Zend
- copyright
- Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- license
- http://framework.zend.com/license/new-bsd New BSD License
- package
- Zend_Log
- subpackage
- Filter
- version
- $Id: Priority.php 20260 2010-01-13 18:29:22Z ralph $
- Properties
- $_priority
- $_operator
- Methods
- __construct
- factory
- accept
Description
Properties
string $_operator = ''
Details
- $_operator
- string
- visibility
- protected
- default
- final
- false
- static
- false
integer $_priority = ''
Details
- $_priority
- integer
- visibility
- protected
- default
- final
- false
- static
- false
Methods
__construct(
integer $priority, string $operator
=
NULL
)
:
Filter logging by $priority. By default, it will accept any log
event whose priority value is less than or equal to $priority.
Arguments
- $priority
- integer
Priority
- $operator
- string
Comparison operator
Details
- visibility
- public
- final
- false
- static
- false
- throws
accept(
array $event
)
:
boolean
Returns TRUE to accept the message, FALSE to block it.
Arguments
- $event
- array
event data
Details
- visibility
- public
- final
- false
- static
- false
factory(
array|Zend_Config $config
)
:
Zend_Log_Filter_Priority
Create a new instance of Zend_Log_Filter_Priority
Arguments
- $config
- arrayZend_Config
Details
- visibility
- public
- final
- false
- static
- true
- throws