Axllent\EnquiryPage\EnquiryPage
Synopsis
class EnquiryPage
extends Page
{
- // members
- private static string $table_name = 'EnquiryPage';
- private static integer $captcha_img_height = 30;
- private static boolean $js_validation = false;
- private static string $client_ip_fields = 'REMOTE_ADDR';
- private static string $random_string = '3HNbhqWBEg';
- private static string $icon = 'axllent/silverstripe-enquiry-page: images/EnquiryPage.png';
- private static string $description = 'Page with an editable contact form';
- private static array $db = ;
- private static array $has_many = ;
- private static array $defaults = ;
- protected array $usedFields = ;
- protected integer $usedFieldCounter = 0;
- // methods
- public static string get_client_ip()
- public static string get_hash()
- public FieldList getCMSFields()
- public ValidationResult validate()
- public ArrayList getTemplateData()
Hierarchy
Extends
- Page
Members
private
- $captcha_img_height
—
int
Default verification image height - $client_ip_fields
—
string
Looked up in $_SERVER - $db
—
array
Database field definitions. - $defaults
—
array
DataObject defaults - $description
—
string
Description - $has_many
—
array
Defines one-to-many relationships. - $icon
—
string
CMS icon - $js_validation
—
mixed
Add JavaScript field validation - $random_string
—
string
Random token string - $table_name
—
string
Table name
protected
- $usedFieldCounter
—
int
Field counter - $usedFields
—
array
Used fields
Methods
public
- getCMSFields() — Data administration interface in Silverstripe.
- getTemplateData() — Get template data
- get_client_ip() — Get the client IP by querying the $_SERVER array.
- get_hash() — Return the hash to use for comparison.
- validate() — Validate the current object.