+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2018 |
+ | Copyright CiviCRM LLC (c) 2004-2019 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2018
+ * @copyright CiviCRM LLC (c) 2004-2019
*/
/**
* This class generates form components for relationship.
*/
-class CRM_Campaign_Form_Task extends CRM_Core_Form {
-
- /**
- * The additional clause that we restrict the search.
- *
- * @var string
- */
- protected $_componentClause = NULL;
-
- /**
- * The task being performed
- *
- * @var int
- */
- protected $_task;
-
- /**
- * The array that holds all the contact ids
- *
- * @var array
- */
- public $_contactIds;
-
- /**
- * The array that holds all the component ids
- *
- * @var array
- */
- protected $_componentIds;
+class CRM_Campaign_Form_Task extends CRM_Core_Form_Task {
/**
* The array that holds all the voter ids
else {
$qfKey = CRM_Utils_Request::retrieve('qfKey', 'String', $this);
$cacheKey = "civicrm search {$qfKey}";
- $allCids = CRM_Core_BAO_PrevNextCache::getSelection($cacheKey, "getall");
+ $allCids = Civi::service('prevnext')->getSelection($cacheKey, "getall");
$ids = array_keys($allCids[$cacheKey]);
$this->assign('totalSelectedVoters', count($ids));
}