Ejemplo n.º 1
0
 /**
  * generate nic_hdl
  * @param $id
  * @param bool $org
  * @return mixed|string
  */
 public static function hdl($id, $org = false)
 {
     $r = Connection::get()->hdl;
     $r .= '_' . $id . '_';
     $r .= mb_substr(md5($id), 0, 8);
     $r .= $org ? '-ORG-R01' : '-R01';
     return mb_strtoupper($r, 'UTF-8');
 }
Ejemplo n.º 2
0
 /**
  * @return Connection
  */
 public function getClient()
 {
     return Connection::get();
 }
Ejemplo n.º 3
0
<?php

require_once __DIR__ . '/../vendor/autoload.php';
use bashkarev\r01\soap\Connection;
Connection::set(new Connection(['login' => 'testreseller', 'password' => 'testreseller', 'hdl' => 'TEST', 'debug' => true, 'options' => ['location' => '	https://partner.r01.ru:1443/partner_api.khtml', 'uri' => 'urn:RegbaseSoapInterface', 'exceptions' => true, 'user_agent' => 'RegbaseSoapInterfaceClient', 'trace' => 1]]));
Ejemplo n.º 4
0
 public function testLogOut()
 {
     $this->client->logOut();
     $this->assertTrue(!isset($this->client->soap->_cookies['SOAPClient']));
 }