public function __construct() { set_error_handler(array($this, 'errorHandler'), E_ALL); }
function __construct($conf) { parent::__construct(); foreach ($conf as $key => $value) { $this->{$key} = $value; } }