Scalr_UI_Controller_Tools_Aws_Route53_Recordsets::listRecordSetDomains PHP Method

listRecordSetDomains() protected method

protected listRecordSetDomains ( string $zoneId, string $name ) : array
$zoneId string
$name string
return array
    protected function listRecordSetDomains($zoneId, $name)
    {
        $result = [];
        $nextName = null;
        $nextType = null;
        if (!empty($zoneId)) {
            do {
                if (isset($rrsList)) {
                    $nextName = $rrsList->nextRecordName;
                    $nextType = $rrsList->nextRecordType;
                }
                $rrsList = $this->getAws()->route53->record->describe($zoneId, $nextName, $nextType);
                foreach ($rrsList as $record) {
                    if ('NS' == $record->type || 'SOA' == $record->type || $name . '.' == $record->name) {
                        continue;
                    }
                    $result[] = ['domainName' => $record->name, 'aliasZoneId' => $zoneId, 'title' => self::RECORD_SETS_ALIAS_TARGET_TITLE];
                }
            } while (!empty($rrsList->isTruncated));
        }
        return $result;
    }