final class ZoneOwnershipResolution (View source)

Outcome of {ZoneCreateOwnershipResolver}: either a resolved owner/group assignment for the new zone, or an error with HTTP status. The error carries a code so the web forms can word it themselves; the message is the API text.

Constants

NO_OWNER

OTHER_OWNER_FORBIDDEN

UNKNOWN_GROUPS

GROUPS_NOT_MEMBER

INVALID_INPUT

USER_OWNER_DISABLED

GROUP_OWNER_DISABLED

NO_GROUPS_EXIST

NOT_IN_ANY_GROUP

Methods

success(int|null $owner, array $groupIds)

No description

error(string $message, int $status, string $code, array $ids = [])

No description

bool
hasError()

No description

Details

static ZoneOwnershipResolution success(int|null $owner, array $groupIds)

No description

Parameters

int|null $owner
array $groupIds

Return Value

ZoneOwnershipResolution

static ZoneOwnershipResolution error(string $message, int $status, string $code, array $ids = [])

No description

Parameters

string $message
int $status
string $code
array $ids

Return Value

ZoneOwnershipResolution

bool hasError()

No description

Return Value

bool