コード例 #1
0
ファイル: PtrRecord.php プロジェクト: Kevin-ZK/vaneDisk
 /**
  * constructur ensures that the record type is PTR
  */
 public function __construct($parent, $info = null)
 {
     $this->type = 'PTR';
     parent::__construct($parent, $info);
     if ($this->type != 'PTR') {
         throw new Exceptions\RecordTypeError(sprintf(Lang::translate('Invalid record type [%s], must be PTR'), $this->type));
     }
 }
コード例 #2
0
 public function __construct($service, $info = null)
 {
     parent::__construct($service, $info);
     $this->type = 'PTR';
 }