<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
$this->qrid = $this->queue->getName();
}
+ /**
+ * @return array
+ */
function __sleep() {
// exclude taskCtx
return array('title', 'queue', 'errorMode', 'isMinimal', 'onEnd', 'onEndUrl', 'pathPrefix', 'qrid', 'buttons');
}
}
+ /**
+ * @param $item
+ */
protected function releaseErrorItem($item) {
switch ($this->errorMode) {
case self::ERROR_CONTINUE:
}
/**
+ *
+ * @param $isOK
+ * @param null $exception
*
* @return array(is_error => bool, is_continue => bool, numberOfItems => int)
*/
return $result;
}
+ /**
+ * @return CRM_Queue_TaskContext
+ */
protected function getTaskContext() {
if (!is_object($this->taskCtx)) {
$this->taskCtx = new CRM_Queue_TaskContext();