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 @global \SCHLIX\cmsHTMLPageHeader $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.
public viewContactFormByID($id)
public arraygetPersonalDataByEmail($email)
Returns all history for contacts by email @global \SCHLIX\cmsDatabase $SystemDB
public removePersonalDataByEmail($email_address, $guid)
GDPR - remove personal data by email
public arrayajxp_SubmitMessage(array $command, bool $backward_compatibility=false)
AJAX - submit message @global \SCHLIX\cmsDatabase $SystemDB @global \App\Core_CustomField $SystemCustomField @global \App\Core_EmailQueue $SystemMail
public arrayajaxSubmitMessage()
Process the AJAX message submission Deprecatedsince version 2.2.0 since version 2.2.0
public booleanRun(array $command)
Run Command for routing. Main command is in $command['action']