Horde_DNS_Zone
in package
A DNS Zone 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
Table of Contents
- $_attributes : mixed
- __construct() : mixed
- The Constructor, creates and validates the attribute array of the zone TODO: The validation should be wrapped in another function TODO: Don't use an empty array as default. A new Zone 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
- formatVerification() : mixed
- The validator for the time formats TODO: The validation should be wrapped in another function TODO: Don't use an empty array as default. A new Zone should always have attributes, but check if empty and throw exception
Properties
$_attributes
protected
mixed
$_attributes
= array('zone_id' => '', 'name' => '', 'domain' => '', 'ttl' => '', 'primary_server' => '', 'ip_adress' => '', 'mail' => '', 'serial' => '', 'refresh' => '', 'retry' => '', 'expire' => '', 'min_ttl' => '')
Methods
__construct()
The Constructor, creates and validates the attribute array of the zone TODO: The validation should be wrapped in another function TODO: Don't use an empty array as default. A new Zone should always have attributes, but check if empty and throw exception
public
__construct([mixed $attributes = array() ]) : mixed
Parameters
- $attributes : mixed = array()
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 —formatVerification()
The validator for the time formats TODO: The validation should be wrapped in another function TODO: Don't use an empty array as default. A new Zone should always have attributes, but check if empty and throw exception
public
formatVerification(mixed $attribute) : mixed
Parameters
- $attribute : mixed