* Static field for all the participant information that we can potentially import
*
* @var array
- * @static
*/
static $_importableFields = NULL;
* Static field for all the participant information that we can potentially export
*
* @var array
- * @static
*/
static $_exportableFields = NULL;
* Static array for valid status transitions rules
*
* @var array
- * @static
*/
static $_statusTransitionsRules = array(
'Pending from pay later' => array('Registered', 'Cancelled'),
* (reference ) an assoc array of name/value pairs.
*
* @return CRM_Event_BAO_Participant
- * @static
*/
public static function &add(&$params) {
* @param $ids
*
* @return CRM_Event_BAO_Participant|null the found object or null
- * @static
*/
public static function getValues(&$params, &$values, &$ids) {
if (empty($params)) {
* (reference ) an assoc array of name/value pairs.
*
* @return CRM_Event_BAO_Participant
- * @static
*/
public static function create(&$params) {
*
* @return bool|int|null|string
* 1. false => If event having some empty spaces.
- * @static
*/
static function eventFull(
$eventId,
*
* @return array
* an array of each option id and total count
- * @static
*/
static function priceSetOptionsCount(
$eventId,
*
* @return int
* $spaces Number of Empty Seats/null.
- * @static
*/
public static function pendingToConfirmSpaces($eventId) {
$emptySeats = 0;
*
* @return array
* array of importable Fields
- * @static
*/
public static function &importableFields($contactType = 'Individual', $status = TRUE, $onlyParticipant = FALSE) {
if (!self::$_importableFields) {
*
* @return array
* array of exportable Fields
- * @static
*/
public static function &exportableFields() {
if (!self::$_exportableFields) {
*
* @return array
* associated array with sort_name and event title
- * @static
*/
public static function participantDetails($participantId) {
$query = "
* True if we want to resolve the values in the reverse direction (value -> name).
*
* @return void
- * @static
*/
public static function resolveDefaults(&$defaults, $reverse = FALSE) {
self::lookupValue($defaults, 'event', CRM_Event_PseudoConstant::event(), $reverse);
* Id of the participation to delete.
*
* @return void
- * @static
*/
public static function deleteParticipant($id) {
CRM_Utils_Hook::pre('delete', 'Participant', $id, CRM_Core_DAO::$_nullArray);
* from other function
*
* @return CRM_Contribute_BAO_Contribution
- * @static
*/
public static function checkDuplicate($input, &$duplicates) {
$eventId = CRM_Utils_Array::value('event_id', $input);
* @param string $eventLevel
* Event_leval string from db.
*
- * @static
*
* @return void
*/
* @param int $oldStatusId
*
* @return array
- * @static
*/
public static function getAdditionalParticipantIds($primaryParticipantId, $excludeCancel = TRUE, $oldStatusId = NULL) {
$additionalParticipantIds = array();
* Do fetch from line items.
*
* @return array
- * @static
*/
public function getFeeDetails($participantIds, $hasLineItems = FALSE) {
$feeDetails = array();
*
* @return array
* $displayName => $viewUrl
- * @static
*/
public static function getAdditionalParticipants($primaryParticipantID) {
$additionalParticipantIDs = array();
* @param bool $updatePrimaryStatus
*
* @return bool|void
- * @static
*/
public static function updateParticipantStatus($participantID, $oldStatusID, $newStatusID = NULL, $updatePrimaryStatus = FALSE) {
if (!$participantID || !$oldStatusID) {
*
* @return void
*
- * @static
*/
public static function updateStatus($participantIds, $statusId, $updateRegisterDate = FALSE) {
if (!is_array($participantIds) || empty($participantIds) || !$statusId) {
* Update status id.
* @param int $fromStatusId
* From status id.
- *
- * return void
* @param bool $returnResult
* @param bool $skipCascadeRule
*
* @return array
- * @static
*/
static function transitionParticipants(
$participantIds, $toStatusId,
* @param string $mailType
* (eg 'approval', 'confirm', 'expired' ).
*
- * return void
- *
* @return bool
- * @static
*/
static function sendTransitionParticipantMail(
$participantId,
*
* @return int
* count of participant records
- * @static
*/
public static function getContactParticipantCount($contactID) {
$query = "SELECT count(*)
* Exclude cancelled additional participant.
*
* @return array
- * @static
*/
public static function getParticipantIds($contributionId, $excludeCancelled = FALSE) {
*
* @return array
* Array of Urls.
- * @static
*/
public static function getAdditionalParticipantUrl($participantIds) {
foreach ($participantIds as $value) {
*
* @param $feeLevel
*
- * @static
*/
public static function createDiscountTrxn($eventID, $contributionParams, $feeLevel) {
// CRM-11124
* @param int $contactId
* Contact id.
*
- * @static
*/
public static function deleteContactParticipant($contactId) {
$participant = new CRM_Event_DAO_Participant();