Functions

Get number of invites available for member.

get_num_invites(\MEMBER $member_id) : integer

Parameters

$member_id

\MEMBER

Member to look for

Returns

integerNumber of invites

Whether the current member may use invites (doesn't check if they have any left though!)

may_use_invites() : boolean

Returns

booleanWhether they may

Sends out a recommendation e-mail.

send_recommendation_email(string $name, mixed $email_address, string $message, boolean $is_invite, \?string $recommender_email, \?string $subject, \?array $names) 

Parameters

$name

string

Recommenders name

$email_address

mixed

Their e-mail address (string or array of alternates)

$message

string

The recommendation message

$is_invite

boolean

Whether this is an invitation

$recommender_email

\?string

Email address of the recommender (NULL: current user's)

$subject

\?string

The subject (NULL: default)

$names

\?array

List of names (NULL: use email addresses as names)