+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* $Id$
*
*/
protected $_voterIds;
/**
- * Build all the data structures needed to build the form
+ * Build all the data structures needed to build the form.
*
* @param
*
* @return void
*/
- function preProcess() {
+ public function preProcess() {
$values = $this->controller->exportValues('Search');
- $this->_task = $values['task'];
+ $this->_task = $values['task'];
$campaignTasks = CRM_Campaign_Task::tasks();
- $taskName = CRM_Utils_Array::value($this->_task, $campaignTasks);
+ $taskName = CRM_Utils_Array::value($this->_task, $campaignTasks);
$this->assign('taskName', $taskName);
$ids = array();
}
}
else {
- $qfKey = CRM_Utils_Request::retrieve('qfKey', 'String', $this);
+ $qfKey = CRM_Utils_Request::retrieve('qfKey', 'String', $this);
$cacheKey = "civicrm search {$qfKey}";
- $allCids = CRM_Core_BAO_PrevNextCache::getSelection($cacheKey, "getall");
+ $allCids = CRM_Core_BAO_PrevNextCache::getSelection($cacheKey, "getall");
$ids = array_keys($allCids[$cacheKey]);
$this->assign('totalSelectedVoters', count($ids));
}
$this->assign('totalSelectedContacts', count($this->_contactIds));
//set the context for redirection for any task actions
- $session = CRM_Core_Session::singleton();
- $qfKey = CRM_Utils_Request::retrieve('qfKey', 'String', $this);
+ $session = CRM_Core_Session::singleton();
+ $qfKey = CRM_Utils_Request::retrieve('qfKey', 'String', $this);
$urlParams = 'force=1';
if (CRM_Utils_Rule::qfKey($qfKey)) {
$urlParams .= '&qfKey=' . $qfKey;
}
/**
- * Simple shell that derived classes can call to add buttons to
+ * Simple shell that derived classes can call to add buttons to.
* the form with a customized title for the main Submit
*
* @param string $title
)
);
}
+
}