예제 #1
0
파일: Contact.php 프로젝트: Eximagen/pfizer
 public function toArray()
 {
     $data = parent::toArray();
     $data['email'] = $this->getEmail();
     $data['name'] = $this->getName();
     $data['unique'] = $this->getUnique();
     return $data;
 }
예제 #2
0
파일: Items.php 프로젝트: Eximagen/pfizer
 public function toArray()
 {
     $data = parent::toArray();
     foreach ($this->_items as $item) {
         $itemData = $item->toArray();
         $data['items'][] = $itemData;
     }
     return $data;
 }
예제 #3
0
파일: Item.php 프로젝트: Eximagen/pfizer
 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;
 }
예제 #4
0
파일: Item.php 프로젝트: Eximagen/pfizer
 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;
 }
예제 #5
0
파일: Body.php 프로젝트: Eximagen/pfizer
 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;
 }
예제 #6
0
파일: Setup.php 프로젝트: Eximagen/pfizer
 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;
 }
예제 #7
0
파일: Custom.php 프로젝트: Eximagen/pfizer
 public function toArray()
 {
     $data = parent::toArray();
     return $data['data'];
 }