/** * Get the internet name from a label and a domain ID * * @param $label string the label of the computer or its alias * @param $domain integer id of the domain that owns the item * * @return result the full internet name **/ static function getInternetNameFromLabelAndDomainID($label, $domain) { $domainName = FQDN::getFQDNFromID($domain); if (!empty($domainName)) { return $label . "." . $domainName; } return $label; }