Changeset View
Changeset View
Standalone View
Standalone View
src/app/Domain.php
Show First 20 Lines • Show All 321 Lines • ▼ Show 20 Lines | public function isEmpty(): bool | ||||
|| UserAlias::whereRaw('substr(alias, ?) = ?', [-$suffixLen, $suffix])->exists() | || UserAlias::whereRaw('substr(alias, ?) = ?', [-$suffixLen, $suffix])->exists() | ||||
|| Group::whereRaw('substr(email, ?) = ?', [-$suffixLen, $suffix])->exists() | || Group::whereRaw('substr(email, ?) = ?', [-$suffixLen, $suffix])->exists() | ||||
|| Resource::whereRaw('substr(email, ?) = ?', [-$suffixLen, $suffix])->exists() | || Resource::whereRaw('substr(email, ?) = ?', [-$suffixLen, $suffix])->exists() | ||||
|| SharedFolder::whereRaw('substr(email, ?) = ?', [-$suffixLen, $suffix])->exists() | || SharedFolder::whereRaw('substr(email, ?) = ?', [-$suffixLen, $suffix])->exists() | ||||
); | ); | ||||
} | } | ||||
/** | /** | ||||
* Returns domain's namespace (required by the EntitleableTrait). | |||||
* | |||||
* @return string|null Domain namespace | |||||
*/ | |||||
public function toString(): ?string | |||||
{ | |||||
return $this->namespace; | |||||
} | |||||
/** | |||||
* Unsuspend this domain. | * Unsuspend this domain. | ||||
* | * | ||||
* The domain is unsuspended through either of the following courses of actions; | * The domain is unsuspended through either of the following courses of actions; | ||||
* | * | ||||
* * The account balance has been topped up, or | * * The account balance has been topped up, or | ||||
* * a suspected spammer has resolved their issues, or | * * a suspected spammer has resolved their issues, or | ||||
* * the command-line is triggered. | * * the command-line is triggered. | ||||
* | * | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |