FRED™  3.0
FRED™: Framework for Rapid and Easy Development
Handler.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Rsi\Fred\Log;
4 
5 abstract class Handler extends \Rsi\Thing{
6 
7  protected $_log;
8  protected $_config = null;
9  protected $_name = null;
10 
11  public function __construct($log,$config,$name = null){
12  $this->_log = $log;
13  $this->_name = $name;
14  $this->publish('name');
15  $this->configure($this->_config = $config);
16  $this->init();
17  }
18 
19  protected function init(){
20  }
21 
22  abstract public function add($prio,$message,$context);
23 
24 }
__construct($log, $config, $name=null)
Definition: Handler.php:11
Basic object.
Definition: Thing.php:13
add($prio, $message, $context)
configure($config)
Configure the object.
Definition: Thing.php:45
publish($property, $visibility=self::READABLE)
Publish a property (or hide it again).
Definition: Thing.php:27