RecordRow
final class RecordRow implements ArrayAccess, JsonSerializable (View source)
One record of a zone listing, as the export, template-save and console paths read it.
The two backends disagreed about the shape: the SQL repository returned disabled as a bool and comments under comment/comment_account, while the API repository returned disabled as 0/1 and comments under api_comment and friends unless a caller asked for them. fromRow() settles both, so a consumer no longer has to know which backend produced the row. Reading it as an array keeps the column-keyed shape the templates and exporters already use.
Methods
No description
Build from either backend's row. Comments are read from the SQL names first and the API names second, so a row that carries neither yields null.
The column-keyed shape. Backend-specific columns appear only when the row carried them, the way the repositories behaved before.
No description
No description
No description
No description
No description
Details
__construct(int|string $id, int $domainId, string $name, string $type, string $content, int $ttl, int $prio, bool $disabled, string|null $comment = null, string|null $commentAccount = null, int|null $commentModifiedAt = null, int|null $modifiedAt = null, int|null $changeDate = null, string|null $ordername = null, bool|null $auth = null)
No description
static RecordRow
fromRow(array $row)
Build from either backend's row. Comments are read from the SQL names first and the API names second, so a row that carries neither yields null.
array
toArray()
The column-keyed shape. Backend-specific columns appear only when the row carried them, the way the repositories behaved before.
array
jsonSerialize()
No description
bool
offsetExists(mixed $offset)
No description
mixed
offsetGet(mixed $offset)
No description
void
offsetSet(mixed $offset, mixed $value)
No description
void
offsetUnset(mixed $offset)
No description