final class RecordAddAccess (View source)

Whether a user may add records to a zone directly, as RecordAddService::open() answers it. Each add-record entry point words the refusal codes itself.

Constants

OK

ZONE_NOT_FOUND

REQUIRES_APPROVAL

FORBIDDEN

Methods

static RecordAddAccess
granted(string $zoneName, string $zoneType)

No description

static RecordAddAccess
zoneNotFound()

No description

static RecordAddAccess
refused(string $code, string $zoneName, string $zoneType)

No description

bool
isGranted()

No description

Details

static RecordAddAccess granted(string $zoneName, string $zoneType)

No description

Parameters

string $zoneName
string $zoneType

Return Value

RecordAddAccess

static RecordAddAccess zoneNotFound()

No description

Return Value

RecordAddAccess

static RecordAddAccess refused(string $code, string $zoneName, string $zoneType)

No description

Parameters

string $code
string $zoneName
string $zoneType

Return Value

RecordAddAccess

bool isGranted()

No description

Return Value

bool