Documentation

Horde_DNS_Record
in package

A DNS Record with all required attributes, but no backend handling This is mostly a data object which holds attributes encapsulated behind sanity-checked setters

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Tags
author

Diana Hille hille@b1-systems.de

author

Ralf Lang lang@b1-systems.de

category

Horde

Table of Contents

$_attributes  : mixed
__construct()  : mixed
The Constructor, creates and validates the attribute array of the record TODO: The validation should be wrapped in another function TODO: Don't use an empty array as default. A new Record should always have attributes, but check if empty and throw exception
__get()  : mixed
Magic method for getting the class attributes
__isset()  : mixed
Magic method for checking if attribute is set
__set()  : mixed
Magic method for setting the class attributes
setType()  : mixed
Validates and sets the type of the record NOTE: AWS limits the possible Record types TODO: Set private or protected

Properties

$_attributes

protected mixed $_attributes = array('record_id' => '', 'zone' => '', 'name' => '', 'ttl' => '', 'class' => '', 'type' => '', 'special' => '', 'rdata' => '', 'length' => '')

Methods

__construct()

The Constructor, creates and validates the attribute array of the record TODO: The validation should be wrapped in another function TODO: Don't use an empty array as default. A new Record should always have attributes, but check if empty and throw exception

public __construct([array<string|int, mixed> $attributeArray = array() ]) : mixed
Parameters
$attributeArray : array<string|int, mixed> = array()

The definition of the attributes for a record

Return values
mixed

__get()

Magic method for getting the class attributes

public __get(string $attribute) : mixed
Parameters
$attribute : string

The name of an attribute

Return values
mixed

__isset()

Magic method for checking if attribute is set

public __isset(string $attribute) : mixed
Parameters
$attribute : string

The name of an attribute

Return values
mixed

__set()

Magic method for setting the class attributes

public __set(string $attribute, mixed $value) : mixed
Parameters
$attribute : string

The name of an attribute

$value : mixed

The value to set the class attribute to

Return values
mixed

setType()

Validates and sets the type of the record NOTE: AWS limits the possible Record types TODO: Set private or protected

public setType(string $type) : mixed
Parameters
$type : string

The type of the Record (like A, AAAA, ...)

Return values
mixed

Search results