Codem\DomainValidation\FieldExtension
Provides common methods for domain validation fields
Synopsis
class FieldExtension
extends Extension
{
- // methods
- public void addCustomDnsCheck()
- public void clearCustomDnsChecks()
- public void addDnsClient()
- public void clearDnsClients()
- public void noValidators()
- public void getDnsClients()
- public void getDnsChecks()
- public void performDnsChecks()
- public void performMxRecordCheck()
- public void getDomainByEmailAddress()
- public void getResults()
Hierarchy
Extends
- SilverStripe\Core\Extension
Methods
public
- addCustomDnsCheck()
- addDnsClient()
- clearCustomDnsChecks()
- clearDnsClients()
- getDnsChecks() — Returns the DNS checks to perform
- getDnsClients() — Returns {@link Codem\DomainValidation\AbstractDomainValidator} instances to use for validation
- getDomainByEmailAddress() — Read this first: https://en.wikipedia.org/wiki/Email_address
- getResults() — As there is no spec for response formats Use {@link getAnswers} to get raw answers from services At the moment Cloudflare uses the Google response schema, but this may change, use this method to get responses from checks.
- noValidators() — Add a validation error when no Domain Validators can be found
- performDnsChecks() — Perform all DNS checks on the field value using all Domain Validators
- performMxRecordCheck() — Perform MX checks on the field value using all Domain Validators