/**
  * Load Member Data from Array
  */
 function load($data)
 {
     parent::load($data);
     $this->setID($data['id']);
     $this->setOrderID($data['orderid']);
     $this->setOrderItemID($data['orderitemid']);
     $this->setType($data['type']);
     $this->setTLD($data['tld']);
     $this->setDomainName($data['domainname']);
     $this->setTerm($data['term']);
     $this->setTransferSecret($data['transfersecret']);
     $this->setAdminContact(ContactDBO_load($data['admincontactid']));
     $this->setBillingContact(ContactDBO_load($data['billingcontactid']));
     $this->setTechContact(ContactDBO_load($data['techcontactid']));
 }
 /**
  * Set Purchasable
  *
  * @param HostingServiceDBO The hosting service to be purchased
  */
 public function setPurchasable(HostingServiceDBO $purchasable)
 {
     // The purpose of this function is to force the purchasable to be a HostingServiceDBO
     parent::setPurchasable($purchasable);
 }
Esempio n. 3
0
 /**
  * Add Item
  *
  * @param OrderItemDBO $orderitemdbo The order item to add to the order
  */
 public function addItem(OrderItemDBO $orderitemdbo)
 {
     // Assign an ID to the order item
     $orderitemdbo->setOrderItemID($this->orderitemid);
     // Add the order item to the order
     $this->orderitems[$this->orderitemid] = $orderitemdbo;
     $this->orderitemid++;
 }