Core
Admin Settings
Core PHP Methods
getAddress() v5
Returns admin's full address
PARAMETERS:
NONE
RETURN VALUE:
String = admin's full address getAdminEmail() v5
Gets Admin email address
PARAMETERS:
NONE
RETURN VALUE:
String = Admin email address getAdminPageSettingValue(string $fileName, string $settingName) v5
Gets a setting value for an admin page
PARAMETERS:
$filename = String, admin page file name
$settingName = String, setting name
RETURN VALUE:
string = Setting value getExportAllContactsRow() v5
getFullPath() v5
Gets site absolute full path
PARAMETERS:
NONE
RETURN VALUE:
string = site absolute full path getGoogleAnalytics() v5
Returns Google Analytics ID if Google Analytics is setup under site settings
PARAMETERS:
NONE
RETURN VALUE:
String = Google Analytics ID getHomePageAction() v5
Gets Home page action as set under the settings
PARAMETERS:
NONE
RETURN VALUE:
int = 1 => Order Page, 2 => Admin's Capture Page, 3 => Admin Login Page, 4 => Random Capture Page, 5 => Other page, 6 => Join Page getHomePageURL() v5
Gets Home page URL if home page action is set to 5 (Other Page)
PARAMETERS:
NONE
RETURN VALUE:
String = Home page URL getHTTP() v5
Returns https:// or https:// for a site based on if SSL is setup on that site or not
PARAMETERS:
NONE
RETURN VALUE:
String = https:// or https:// getHTTPURL() v5
Returns full site URL including http or https
PARAMETERS:
NONE
RETURN VALUE:
String = full site URL including http or https getLicense() v5
Returns site's WMT license
PARAMETERS:
NONE
RETURN VALUE:
String = Site's WMT license getMonitorSize() v5
Returns monitor size
PARAMETERS:
NONE
RETURN VALUE:
int = monitor size = 1 if monitor width > 1249 & monitor size = 2 monitorWidth between 1249 and 779 & monitor size = 3 if monitor width getReportSpam() v5
Checks if spam report is on
PARAMETERS:
NONE
RETURN VALUE:
Bool = true if spam report is on, false otherwise getReportSpamDomain() v5
Gets domain spam report
PARAMETERS:
NONE
RETURN VALUE:
String = domain spam report getRequireConstantIP() v5
Checks if the site requires constant IP
PARAMETERS:
NONE
RETURN VALUE:
Bool = True if the site has constant IP, False otherwise getSiteID() v5
Gets site ID as set in WMT
PARAMETERS:
NONE
RETURN VALUE:
int = site ID getSiteIP() v5
Returns Site IP
PARAMETERS:
NONE
RETURN VALUE:
String = Site IP Address getSiteTitle() v5
Gets Site Title
PARAMETERS:
NONE
RETURN VALUE:
String = site title getSiteType() v5
Gets site type
PARAMETERS:
NONE
RETURN VALUE:
int = 1 => Toolbox, 2 => Tool Truck getSiteURL() v5
Gets site domain
PARAMETERS:
NONE
RETURN VALUE:
String = site domain (site URL without http:// or https://) getSSLOnReplicatedPages() v5
Checks if SSL is turned on for capture pages
PARAMETERS:
NONE
RETURN VALUE:
Bool = True if the site has SSL turned on for capture pages, false otherwise getSupportPassword() v5
Gets site support password
PARAMETERS:
NONE
RETURN VALUE:
string = site support password getWMTUsername() v5
Gets client username as set in WMT client admin
PARAMETERS:
NONE
RETURN VALUE:
String = client username isDesktop() v5
Checks if the current view is desktop view
PARAMETERS:
NONE
RETURN VALUE:
Bool = true if the view is desktop, False otherwise isMobile() v5
Checks if the current view is mobile view
PARAMETERS:
NONE
RETURN VALUE:
Bool = true if the view is mobile, False otherwise isOneUp() v5
Checks if the site has a passup compensation plan turned on or not
PARAMETERS:
NONE
RETURN VALUE:
int = 1 if the site has a passup compensation plan, 0 otherwise isTablet() v5
Checks if the current view is tablet view
PARAMETERS:
NONE
RETURN VALUE:
Bool = true if the view is tablet, False otherwise __construct(\WMT\MySQL $mysqli, \WMT\Input\Server $inputServer) v5
Initialize settings core object
PARAMETERS:
$mysqli = object
$toolAccess = object
RETURN VALUE:
voidCore PHP Variables
🔎︎ %l4610%