Codem\DomainValidation\AbstractDomainValidator
Provides common methods for performing lookups and defining method
- Author: James
Synopsis
class AbstractDomainValidator
{
- // members
- private static integer $ttl = 0;
- protected $domain;
- protected string $protocol = "https";
- protected string $host = "";
- protected string $path = "";
- protected integer $timeout = 5;
- // methods
- public abstract void performLookup()
- protected void getCacheDir()
- protected void getCachePlugin()
- protected void doGet()
- private void logHitMiss()
- public void setDomain()
- public void hasMxRecord()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
Members
private
- $ttl
protected
- $domain
- $host
- $path
- $protocol
- $timeout
Methods
private
protected
- doGet() — Do a GET request
- getCacheDir()
- getCachePlugin() — Refer: http://guzzle3.readthedocs.io/plugins/cache-plugin.html