Public Member Functions | Static Public Member Functions | Public Attributes

Robo47_Log_Writer_Mock Class Reference

Inheritance diagram for Robo47_Log_Writer_Mock:
Inheritance graph
[legend]
Collaboration diagram for Robo47_Log_Writer_Mock:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 __construct ()
 _write ($event)
 Write a message to the log.
 getFilters ()
 removeFilter ($class)
 shutdown ()
 Record shutdown.

Static Public Member Functions

static factory ($config)
 Create a new instance of Zend_Log_Writer_Mock.

Public Attributes

 $constructorParams = array()
 $events = array()
 $shutdown = false

Detailed Description

Definition at line 31 of file Mock.php.


Constructor & Destructor Documentation

Robo47_Log_Writer_Mock::__construct (  ) 

Definition at line 56 of file Mock.php.

    {
        $this->constructorParams = func_get_args();
    }


Member Function Documentation

Robo47_Log_Writer_Mock::_write ( event  ) 

Write a message to the log.

Parameters:
array $event event data
Returns:
void

Definition at line 67 of file Mock.php.

    {
        $this->events[] = $event;
    }

static Robo47_Log_Writer_Mock::factory ( config  )  [static]

Create a new instance of Zend_Log_Writer_Mock.

Parameters:
array|Zend_Config $config
Returns:
Robo47_Log_Writer_Mock

Definition at line 88 of file Mock.php.

    {
        return new Robo47_Log_Writer_Mock($config);
    }

Robo47_Log_Writer_Abstract::getFilters (  )  [inherited]
Returns:
array

Definition at line 60 of file Abstract.php.

    {
        return $this->_filters;
    }

Robo47_Log_Writer_Abstract::removeFilter ( class  )  [inherited]
Parameters:
string|Robo47_Log_Filter_Interface $class
Returns:
Robo47_Log_Writer_Abstract *Provides Fluent Interface*

Definition at line 40 of file Abstract.php.

    {
        foreach ($this->_filters as $key => $filter) {
            if (is_string($class)) {
                if ($filter instanceof $class) {
                    unset($this->_filters[$key]);
                }
            } elseif (is_object($class)) {
                if ($filter === $class) {
                    unset($this->_filters[$key]);
                }
            }
        }
        return $this;
    }

Robo47_Log_Writer_Mock::shutdown (  ) 

Record shutdown.

Returns:
void

Definition at line 77 of file Mock.php.

    {
        $this->shutdown = true;
    }


Member Data Documentation

Robo47_Log_Writer_Mock::$constructorParams = array()

Definition at line 51 of file Mock.php.

Robo47_Log_Writer_Mock::$events = array()

Definition at line 39 of file Mock.php.

Robo47_Log_Writer_Mock::$shutdown = false

Definition at line 45 of file Mock.php.


The documentation for this class was generated from the following file: