Esempio n. 1
0
 public function toArray()
 {
     $data = parent::toArray();
     $data['email'] = $this->getEmail();
     $data['name'] = $this->getName();
     $data['unique'] = $this->getUnique();
     return $data;
 }
Esempio n. 2
0
 public function toArray()
 {
     $data = parent::toArray();
     foreach ($this->_items as $item) {
         $itemData = $item->toArray();
         $data['items'][] = $itemData;
     }
     return $data;
 }
Esempio n. 3
0
 public function toArray()
 {
     $data = parent::toArray();
     $params = array("quantity", "supplierid", "supplierauxid", "unitprice", "currency", "classification", "classdomain", "uom", "description", "language");
     foreach ($params as $idx => $key) {
         $data[$key] = $this->{"get" . ucfirst($key)}();
     }
     return $data;
 }
Esempio n. 4
0
 public function toArray()
 {
     $data = parent::toArray();
     $params = array("supplierid", "url", "description", "unspsc", "level");
     foreach ($params as $idx => $key) {
         $data[$key] = $this->{"get" . ucfirst($key)}();
     }
     return $data;
 }
Esempio n. 5
0
 public function toArray()
 {
     $data = parent::toArray();
     $data['buyercookie'] = $this->getBuyerCookie();
     $data['items'] = $this->getItems()->toArray();
     $data['total'] = $this->getTotal();
     $data['currency'] = $this->getCurrency();
     return $data;
 }
Esempio n. 6
0
 public function toArray()
 {
     $data = parent::toArray();
     $data['contact'] = $this->getContact()->toArray();
     $data['buyercookie'] = $this->getBuyerCookie();
     $data['postform'] = $this->getPostForm();
     $data['shipping'] = $this->getShipping()->toArray();
     $data['items'] = $this->getItems()->toArray();
     return $data;
 }
Esempio n. 7
0
 public function toArray()
 {
     $data = parent::toArray();
     return $data['data'];
 }