public function createPointer($domain, $alias = false)
    {
        $parameters = [
            'domain' => $this->domainName,
            'from' => $domain,
            'action' => 'add',
        ];
        if ($alias) {
            $parameters['alias'] = 'yes';
            $list = &$this->aliases;
        } else {
            $list = &$this->pointers;
        }
        $this->getContext()->invokeApiPost('DOMAIN_POINTER', $parameters);
        $list[] = $domain;
        $list = array_unique($list);
    }
public function createPointer($domain, $alias = false)
    {
        $parameters = [
            'domain' => $this->domainName,
            'from' => $domain,
            'action' => 'add',
        ];
        if ($alias) {
            $parameters['alias'] = 'yes';
            $list = &$this->aliases;
        } else {
            $list = &$this->pointers;
        }
        $this->getContext()->invokeApiPost('DOMAIN_POINTER', $parameters);
        $list[] = $domain;
        $list = array_unique($list);
    }
public function createPointer ( $ domain , $ alias = false ) { $ parameters = [ 'domain' => $ this -> domainName , 'from' => $ domain , 'action' => 'add' , ] ; if ( $ alias ) { $ parameters [ 'alias' ] = 'yes' ; $ list = & $ this -> aliases ; } else { $ list = & $ this -> pointers ; } $ this -> getContext ( ) -> invokeApiPost ( 'DOMAIN_POINTER' , $ parameters ) ; $ list [ ] = $ domain ; $ list = array_unique ( $ list ) ; }
Creates a pointer or alias.

@param string $domain
@param bool $alias
Creates a pointer or alias .