class RegistrationAction

Properties

EventplannerController $mod

Methods

int
calc_max_accompanying_persons(array $details, Participant $participant = null)

If max_participants is set in the event, the participant plus accompanying persons may not be bigger than max_participants

int
calc_max_company(int $max_company, array $details, Participant $participant = null)

Calculates how many persons can accompany a participant taking max_participants into account.

array
get_event_questions_answers(array $details, Form $form)

Returns the answers for the event questions

get_event_questions_form(int $event_id, int $participant_id, bool $extended = false, Form $form = null)

No description

bool
handle_process(array $details, int $status, Participant $participant, bool $notify)

Handle process

register_for_event(int $event_id, mixed $user, array|string|bool $answers = false, bool $validate = true, int $status = USER_EVENT_STATUS_PARTICIPATING, bool $notify = true, int $accompanying_persons = 0, array $details = array())

put your comment there.

bool
unregister_from_event($event_id, $email, bool $notify = true, bool $delete_participant = false, bool $user_id = false)

No description

Details

at line 328
int calc_max_accompanying_persons(array $details, Participant $participant = null)

If max_participants is set in the event, the participant plus accompanying persons may not be bigger than max_participants

Parameters

array $details
Participant $participant

Return Value

int

at line 342
int calc_max_company(int $max_company, array $details, Participant $participant = null)

Calculates how many persons can accompany a participant taking max_participants into account.

Parameters

int $max_company
array $details
Participant $participant

Return Value

int

at line 374
array get_event_questions_answers(array $details, Form $form)

Returns the answers for the event questions

Parameters

array $details
  • event details from $this->mod->get_event_details
Form $form
  • form with the answers

Return Value

array

at line 253
Form get_event_questions_form(int $event_id, int $participant_id, bool $extended = false, Form $form = null)

No description

Parameters

int $event_id
int $participant_id
bool $extended
Form $form

If a form is passed, adds the questions fields to this form and doesn't add a submit button

Return Value

Form

at line 182
bool handle_process(array $details, int $status, Participant $participant, bool $notify)

Handle process

Parameters

array $details
int $status
Participant $participant
bool $notify

Return Value

bool

at line 39
Participant|bool register_for_event(int $event_id, mixed $user, array|string|bool $answers = false, bool $validate = true, int $status = USER_EVENT_STATUS_PARTICIPATING, bool $notify = true, int $accompanying_persons = 0, array $details = array())

put your comment there.

..

Parameters

int $event_id
mixed $user

-numeric for system_user ID or array('user_id'=>$system_user_id, 'email'=>$email[, 'firstname'=>$fn, 'lastname'=>$ln] || ['name'=>$name] );

array|string|bool $answers
bool $validate
  • Deadline and max_participant check?
int $status
bool $notify
int $accompanying_persons

How many people come along with the participant

array $details

get_event_details result

Return Value

Participant|bool

at line 229
bool unregister_from_event($event_id, $email, bool $notify = true, bool $delete_participant = false, bool $user_id = false)

No description

Parameters

$event_id
$email
bool $notify
bool $delete_participant
bool $user_id

Return Value

bool