Beispiel #1
0
 public function toArray()
 {
     $data = parent::toArray();
     $data['email'] = $this->getEmail();
     $data['name'] = $this->getName();
     $data['unique'] = $this->getUnique();
     return $data;
 }
Beispiel #2
0
 public function toArray()
 {
     $data = parent::toArray();
     foreach ($this->_items as $item) {
         $itemData = $item->toArray();
         $data['items'][] = $itemData;
     }
     return $data;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #7
0
 public function toArray()
 {
     $data = parent::toArray();
     return $data['data'];
 }