Documentation

TypeDefinitionManager
in package

Holds data about how the RDATA sections of known resource record types are structured

Tags
category

LibDNS

author

Chris Wright https://github.com/DaveRandom

Table of Contents

Properties

$definitions  : array<string|int, array<string|int, mixed>>
$fieldDefFactory  : FieldDefinitionFactory
$typeDefFactory  : TypeDefinitionFactory
$typeDefs  : array<string|int, mixed>

Methods

__construct()  : mixed
Constructor
getTypeDefinition()  : TypeDefinition
Get a type definition for a record type if it is known
registerTypeDefinition()  : mixed
Register a custom type definition
setDefinitions()  : mixed
Set the internal definitions structure

Properties

$definitions

private array<string|int, array<string|int, mixed>> $definitions = []

How the RDATA sections of known resource record types are structured

Methods

getTypeDefinition()

Get a type definition for a record type if it is known

public getTypeDefinition(int $recordType) : TypeDefinition
Parameters
$recordType : int

Resource type, can be indicated using the ResourceTypes enum

Return values
TypeDefinition

registerTypeDefinition()

Register a custom type definition

public registerTypeDefinition(int $recordType, array<string|int, int>|TypeDefinition $definition) : mixed
Parameters
$recordType : int

Resource type, can be indicated using the ResourceTypes enum

$definition : array<string|int, int>|TypeDefinition
Tags
throws
InvalidArgumentException

When the type definition is invalid


        
On this page

Search results