DoJoin
DoJoin PHP Methods
static captchaPass(\WMT\Container $container) v5
Validate captcha input
PARAMETERS:
$container = object
RETURN VALUE:
bool = True if the CAPTCHA is valid, false otherwisestatic checkConfirmEmail(\WMT\Settings\Core $settingsCore, \WMT\SQL\Visit\Visitor $visitor) v5
Checks if member's email is confirmed. if not confirmed it redirects to the email confirmation page
PARAMETERS:
$settingsCore = object
$visitor = object
RETURN VALUE:
voidstatic checkConfirmPhone(\WMT\Settings\Core $settingsCore, \WMT\SQL\Visit\Visitor $visitor) v5
Checks if a member has phone number confirmed. It redirects to confirm phone page if not confirmed
PARAMETERS:
$settingsCore = object
$visitor = object
RETURN VALUE:
voidstatic checkPayRedirect(\WMT\Container $container, \WMT\SQL\Visit\Visitor $visitor, \WMT\SQL\Member\Membership $membership) v5
Go to payment redirect URL
PARAMETERS:
$container = object
$visitor = object
$membership = object
RETURN VALUE:
voidstatic checkRedirect(\WMT\Settings\Core $settingsCore, \WMT\SQL\Member\Membership $membership, \WMT\SQL\Member\Member $member) v5
Redirects to create an account redirect page. can use joinredirect session to enforce redirect
PARAMETERS:
$settingsCore = object
$membership = object
$member = object
RETURN VALUE:
voidstatic checkUsernameSpam(\WMT\MySQL $mysqli, string $username) v5
Checks if username is a spam (redirects to google if username is a spam)
PARAMETERS:
$mysqli = object
$username = string, New member Username
RETURN VALUE:
voidstatic clearSessions() v5
Clear create an account session variables
PARAMETERS:
NONE
RETURN VALUE:
voidstatic getCanJoin(\WMT\Container $container, \WMT\SQL\Visit\Visitor $visitor, \WMT\SQL\Member\Membership $membership, string $email) v5
Checks if someone can create an account using the join page
PARAMETERS:
$container = object
$visitor = object
$membership = object
$email = string, New member email
RETURN VALUE:
bool = True the visitor can create an account, false otherwisestatic getFailureURL(\WMT\Container $container, \WMT\SQL\Member\Membership $membership, int $parentID) v5
Gets bad username action URL
PARAMETERS:
$container = object
$membership = object
$parentID = int, Parent ID
RETURN VALUE:
string = bad username action URLstatic getMembership(\WMT\Container $container, int $membershipID) v5
Gets new member membership
PARAMETERS:
$container = object
$membershipID = int, Membership ID
RETURN VALUE:
object = \WMT\SQL\Member\Membershipstatic getUsername(\WMT\Container $container, string $firstName, string $email) v5
Generate a username for the new account
PARAMETERS:
$container = object
$firstName = string, New member first name
$email = string, New member email
RETURN VALUE:
string = New member usernamestatic setFailureMessage(\WMT\Input\Post $inputPost, string $firstname, string $email, int $membershipID, string $existMessage) v5
Set create an account failure message
PARAMETERS:
$inputPost = object
$firstname = string, New member firstname
$email = string, New member email
$membershipID = int, New member membership ID
$existMessage = string, Failure Message content
RETURN VALUE:
voidDoJoin PHP Variables
🔎︎ %l4610%