type = 'DS'; $this->name = $record->name; $this->absoluteName = $record->absoluteName; $this->ttl = (int)$record->ttl; $this->class = $record->class; $this->line = $record->line; $this->customData = $record->customData; $this->rdlength = $record->rdlength; $this->rdata = new CpanelRecordAdapterType(); $this->rdata->keyname = (int)$record->rdata->keytag; $this->rdata->digitype = (int)$record->rdata->digesttype; $this->rdata->algorithm = (int)$record->rdata->algorithm; } public static function toDnsManagerRecord(array $recordArray) { $recordArray['keytag'] = $recordArray['keyname']; $recordArray['digesttype'] = $recordArray['digitype']; unset($recordArray['keyname'],$recordArray['digitype']); return Record::tryToCreateFromArray($recordArray); } }