Пример #1
0
 /**
  * constructor
  * every time new object is created, Api method is called
  */
 public function __construct()
 {
     parent::__construct();
     $properties = $this->call('getdidwwapidetails', array());
     $properties = (array) $properties;
     unset($properties['result']);
     unset($properties['error']);
     $this->fromArray($properties);
 }
Пример #2
0
 /**
  * Construct new didnumber object
  * @param Order $order
  */
 function __construct(Order $order = NULL)
 {
     $this->setOrder($order);
     parent::__construct();
 }