Horde_DNS_Record_Mock
extends Horde_DNS_Record
in package
The old Zone Mock NOTE: I don't think this is necessary anymore as this rdo class isn't used
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Tags
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() : mixed
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, ...)