| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* This defines two actions- View and Edit.
*
* @var array
- * @static
*/
static $_links = NULL;
* We use desc to remind us what that column is, name is used in the tpl
*
* @var array
- * @static
*/
static $_columnHeaders;
/**
* Properties of contact we're interested in displaying
* @var array
- * @static
*/
static $_properties = array(
'contact_id',
* @param null $compContext
*
* @return \CRM_Event_Selector_Search
- @access public
*/
- function __construct(
+ public function __construct(
&$queryParams,
$action = CRM_Core_Action::NONE,
$eventClause = NULL,
// submitted form values
$this->_queryParams = &$queryParams;
- $this->_single = $single;
- $this->_limit = $limit;
- $this->_context = $context;
+ $this->_single = $single;
+ $this->_limit = $limit;
+ $this->_context = $context;
$this->_compContext = $compContext;
$this->_eventClause = $eventClause;
/**
* Returns all the rows in the given offset and rowCount
*
- * @param enum $action
+ * @param string $action
* The action being performed.
* @param int $offset
* The row number to start from.
* The number of rows to return.
* @param string $sort
* The sql string that describes the sort order.
- * @param enum $output
+ * @param string $output
* What should the result set include (web/email/csv).
*
* @return array
}
$mask = CRM_Core_Action::mask($permissions);
- $statusTypes = CRM_Event_PseudoConstant::participantStatus();
- $statusClasses = CRM_Event_PseudoConstant::participantStatusClass();
+ $statusTypes = CRM_Event_PseudoConstant::participantStatus();
+ $statusClasses = CRM_Event_PseudoConstant::participantStatusClass();
$participantRoles = CRM_Event_PseudoConstant::participantRole();
- $sep = CRM_Core_DAO::VALUE_SEPARATOR;
+ $sep = CRM_Core_DAO::VALUE_SEPARATOR;
//get all campaigns.
$allCampaigns = CRM_Campaign_BAO_Campaign::getCampaigns(NULL, NULL, FALSE, FALSE, FALSE, TRUE);
}
/**
- * FIXME: the current internationalisation is bad, but should more or less work
- * on most of "European" languages
- *
- * @return array
- * which contains an array of strings
+ * @inheritDoc
*/
public function getQILL() {
return $this->_query->qill();
*
* @param string $action
* The action being performed.
- * @param enum $output
+ * @param string $output
* What should the result set include (web/email/csv).
*
* @return array
if (!isset(self::$_columnHeaders)) {
self::$_columnHeaders = array(
array(
- 'name' => ts('Event'),
+ 'name' => ts('Event'),
'sort' => 'event_title',
'direction' => CRM_Utils_Sort::DONTCARE,
),
public function getExportFileName($output = 'csv') {
return ts('CiviCRM Event Search');
}
+
}