Metaregistrar\EPP\eppLoginRequest::addServices PHP Method

addServices() public method

Add the services and extensions to the login request The services and extensions are retrieved from the epp Hello response and saved in the connection object The connection procedures will call this function to set the login parameters
public addServices ( array $services, array $extensions )
$services array
$extensions array
    public function addServices($services, $extensions)
    {
        #
        # Login options: Requested services
        #
        if (is_array($services)) {
            $svcs = $this->createElement('svcs');
            foreach ($services as $service => $extra) {
                $svcs->appendChild($this->createElement('objURI', $service));
            }
            if (is_array($extensions) && count($extensions) > 0) {
                $svcextension = $this->createElement('svcExtension');
                foreach ($extensions as $extension => $extra) {
                    $svcextension->appendChild($this->createElement('extURI', $extension));
                }
                $svcs->appendChild($svcextension);
            }
            $this->login->appendChild($svcs);
        }
    }