+--------------------------------------------------------------------+
| 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$
*
*/
class CRM_Event_BAO_Event extends CRM_Event_DAO_Event {
/**
- * Class constructor
+ * Class constructor.
*/
public function __construct() {
parent::__construct();
}
/**
- * Fetch object based on array of properties
+ * Fetch object based on array of properties.
*
* @param array $params
* (reference ) an assoc array of name/value pairs.
}
/**
- * Update the is_active flag in the db
+ * Update the is_active flag in the db.
*
* @param int $id
* Id of the database record.
}
/**
- * Add the event
+ * Add the event.
*
* @param array $params
* Reference array contains the values submitted by the form.
}
/**
- * Create the event
+ * Create the event.
*
* @param array $params
* Reference array contains the values submitted by the form.
}
/**
- * Delete the event
+ * Delete the event.
*
* @param int $id
* Event id.
}
/**
- * Get events Summary
+ * Get events Summary.
*
*
* @return array
}
/**
- * Get participant count
+ * Get participant count.
*
* @param int $eventId
* @param bool $considerStatus consider status for participant count.
}
/**
- * Get the information to map a event
+ * Get the information to map a event.
*
* @param int $id
* For which we want map info.
}
/**
- * Get the complete information for one or more events
+ * Get the complete information for one or more events.
*
* @param date $start
* Get events with start date >= this date.
$tplParams['participant_status'] = CRM_Event_PseudoConstant::participantStatus($statusId, NULL, 'label');
}
//CRM-15754 - if participant_status contains status ID
- elseif (CRM_Utils_Rule::integer($tplParams['participant_status'])) {
+ elseif (!empty($tplParams['participant_status']) && CRM_Utils_Rule::integer($tplParams['participant_status'])) {
$tplParams['participant_status'] = CRM_Event_PseudoConstant::participantStatus($tplParams['participant_status'], NULL, 'label');
}
}
/**
- * Build the array for display the profile fields
+ * Build the array for display the profile fields.
*
* @param array $params
* Key value.
}
/**
- * Check if event registration is valid according to permissions AND Dates
+ * Check if event registration is valid according to permissions AND Dates.
*
* @param array $values
* @param int $eventID
}
/**
- * Make sure that the user has permission to access this event
+ * Make sure that the user has permission to access this event.
*
* @param int $eventId
* @param int $type
}
/**
- * Retrieve event template default values to be set
+ * Retrieve event template default values to be set.
* as default values for current new event.
*
* @param int $templateId
}
/**
- * Update the Campaign Id of all the participants of the given event
+ * Update the Campaign Id of all the participants of the given event.
*
* @param int $eventID
* Event id.