Function for returning the subscription id of a free subscription plan that is active and visible for the permission of 'servicebid' with a value of 'true'
nothing
build_invitation_datastore
([integer $userid = 0], string $email)
-
integer
$userid: user id
-
string
$email: email address
Function to insert custom registration questions into the database based on formame (key) and answer (value).
nothing
build_registration_questions
(array &$questions, integer $userid)
-
array
&$questions: question formname (key) and answer (value)
-
integer
$userid: user id
Function for creating a valid ILance member using the registration datastore.
mixed
build_user_datastore
(array &$user, array &$preferences, array &$subscription, array &$questions, [string $custom = 'return_userarray'], [bool $skipsessions = 0])
-
array
&$user: user information
-
array
&$preferences: user preferences information
-
array
&$subscription: user subscription information
-
array
&$questions: custom registration questions and answers
-
string
$custom: tells this function what data to return when completed: return_userid OR return_userstatus OR return_userarray
-
bool
$skipsessions: tells this function if it should skip sessions (for api calls from other applications if required)
Function for creating a new user subscription plan.
nothing
build_user_subscription
([integer $userid = 0], [integer $subscriptionid = 0], [string $paymethod = 'account'], [string $promocode = ''], [integer $roleid = '-1'], [boolean $skipsession = 0])
-
integer
$userid: user id
-
integer
$subscriptionid: subscription id
-
string
$paymethod: payment method (account, paypal, cashu, stormpay, moneybookers, etc)
-
string
$promocode: promotional code
-
integer
$roleid: subscription role id
-
boolean
$skipsession: skip session functionality (maybe calling from external script)
Function for creating a new user account number used in the ILance accounting system.
mixed
construct_account_number
()
Function for returning the default time zone
string
fetch_default_timezone
()
Function for fetching the question id based on a formname question.
integer
fetch_formname_questionid
(string $formname)
-
string
$formname: name of the form field
Function for returning the subscription id of a free subscription plan that is active and visible for the permission of 'servicebid' with a value of 'true'
bool
fetch_invite_subscriptionid
()
Function to process submitted custom registration questions to be stored within the database
mixed
process_custom_register_questions
(array &$custom, integer $userid)
-
array
&$custom: custom answers stored in array format
-
integer
$userid: user id
Function for checking if a user attempting to register is coming from a proxy service and displays a custom template denying registration if registration proxy disabling is enabled.
string
proxy_check
()
Function for checking a referral code
nothing
referral_check
(integer $userid, string $referralcode)
-
integer
$userid: user id
-
string
$referralcode: referral code
Function for dispatching the activation email to new clients.
nothing
send_email_activation
(string $useremail)
-
string
$useremail: user email address
Function for dispatching the activation email to new clients.
nothing
send_email_activation_with_redirect_link
(string $useremail, $redirect)
-
string
$useremail: user email address
-
$redirect