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

Class: Microsoft_Log_Filter_Priority

Source Location: /Log/Filter/Priority.php

Class Overview

Microsoft_Log_Filter_Abstract
   |
   --Microsoft_Log_Filter_Priority



Author(s):

Version:

  • $Id: Priority.php 20260 2010-01-13 18:29:22Z ralph $

Copyright:

  • Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

Variables

Methods


Inherited Methods

Class: Microsoft_Log_Filter_Abstract

Microsoft_Log_Filter_Abstract::_parseConfig()
Validate and optionally convert the config to array

Class Details

[line 36]


Tags:

version:  $Id: Priority.php 20260 2010-01-13 18:29:22Z ralph $
copyright:  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license:  New BSD License


[ Top ]


Class Variables

$_operator =

[line 46]



Tags:

access:  protected

Type:   string


[ Top ]

$_priority =

[line 41]



Tags:

access:  protected

Type:   integer


[ Top ]



Class Methods


static method factory [line 74]

static Microsoft_Log_Filter_Priority factory( array $config)

Create a new instance of Microsoft_Log_Filter_Priority



Tags:

throws:  Microsoft_Log_Exception
access:  public


Parameters:

array   $config  

[ Top ]

constructor __construct [line 56]

Microsoft_Log_Filter_Priority __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.



Tags:

throws:  Microsoft_Log_Exception
access:  public


Parameters:

integer   $priority   Priority
string   $operator   Comparison operator

[ Top ]

method accept [line 99]

boolean accept( array $event)

Returns TRUE to accept the message, FALSE to block it.



Tags:

return:  accepted?
access:  public


Parameters:

array   $event   event data

[ Top ]


Documentation generated on Wed, 18 May 2011 12:06:43 +0200 by phpDocumentor 1.4.3