App\Contacts

Inherited from cmsApplication_HierarchicalTree_List

Protected Attributes

protected $Captcha= null
protected $enable_captcha= false
protected $table_messages= 'gk_contact_messages'
protected $wait_time_in_seconds_before_next_contact 

Protected Methods

protected isWindowsServerAndSMTPHasNotBeenSetUp()
protected loadDefaultStaticAssetFiles()
Load default JS and CSS required for frontend $HTMLHeader

Public Methods

public __construct()
public getLastContactCountByIPAddressWithinLimit($ip)
public viewItemByID(int $id=1, bool $from_cache=false)
Loads the item and display it with view.item.template.php
public viewMainPage()
Frontend: view the main page. Usually loads view.main.template.php
public viewContactFormByID($id)
public arraygetPersonalDataByEmail($email)
Returns all history for contacts by email $SystemDB
public removePersonalDataByEmail($email_address, $guid)
GDPR - remove personal data by email
public arrayajxp_SubmitMessage(array $command, bool $backward_compatibility=false)
AJAX - submit message $SystemDB $SystemCustomField $SystemMail
public arrayajaxSubmitMessage()
Process the AJAX message submission Deprecatedsince version 2.2.0 since version 2.2.0
public booleanRun(string $command)
Runs command. If return value is true, then it will be displayed as a full page If return value is false, AJAX method is assumed