<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
*/
class CRM_Queue_ErrorPolicy {
var $active;
+
+ /**
+ * @param null $level
+ */
function __construct($level = NULL) {
register_shutdown_function(array($this, 'onShutdown'));
if ($level === NULL) {
$this->active = FALSE;
}
+ /**
+ * @param $callable
+ *
+ * @return mixed
+ */
function call($callable) {
$this->activate();
try {