abstract class PurgeDomain in Purge 7.2
Class definition for domains.
Hierarchy
- class \Purge
- class \PurgeDomain
Expanded class hierarchy of PurgeDomain
File
- includes/
purge.class.inc, line 332 - Contains all class and interface definitions for Purge.
View source
abstract class PurgeDomain extends Purge {
public $domains = array();
/**
* Validate the domains.
*/
public function validate() {
$errors = array();
foreach ($this->domains as $domain) {
$pieces = explode(".", $domain);
foreach ($pieces as $piece) {
if (!preg_match('/^[a-z\\d][a-z\\d-]{0,62}$/i', $piece) || preg_match('/-$/', $piece)) {
$errors[] = array(
'name' => 'domains',
'message' => t('Invalid domain'),
);
}
return $errors;
}
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Purge:: |
public | property | ||
Purge:: |
public | property | ||
Purge:: |
public | property | ||
Purge:: |
public | property | ||
Purge:: |
public | property | ||
Purge:: |
public | property | ||
Purge:: |
public | property | ||
Purge:: |
public | property | ||
Purge:: |
public | function | Only serialize the static values. | 1 |
PurgeDomain:: |
public | property | ||
PurgeDomain:: |
public | function |
Validate the domains. Overrides Purge:: |