Esempio n. 1
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['text.languageid'] = $this->getLanguageId();
     $list['text.typeid'] = $this->getTypeId();
     $list['text.label'] = $this->getLabel();
     $list['text.type'] = $this->getType();
     $list['text.domain'] = $this->getDomain();
     $list['text.content'] = $this->getContent();
     $list['text.status'] = $this->getStatus();
     return $list;
 }
Esempio n. 2
0
 /**
  * Sets the item values from the given array.
  *
  * @param array $list Associative list of item keys and their values
  * @return array Associative list of keys and their values that are unknown
  */
 public function fromArray(array $list)
 {
     $unknown = array();
     $list = parent::fromArray($list);
     foreach ($list as $key => $value) {
         switch ($key) {
             case 'catalog.id':
                 $this->node->setId($value);
                 break;
             case 'catalog.code':
                 $this->node->setCode($value);
                 break;
             case 'catalog.label':
                 $this->node->setLabel($value);
                 break;
             case 'catalog.status':
                 $this->node->setStatus($value);
                 break;
             case 'catalog.config':
                 $this->setConfig($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Esempio n. 3
0
 /**
  * Returns the item values as array.
  *
  * @return array Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['customer.label'] = $this->getLabel();
     $list['customer.code'] = $this->getCode();
     $list['customer.birthday'] = $this->getBirthday();
     $list['customer.status'] = $this->getStatus();
     $list['customer.password'] = $this->getPassword();
     $list['customer.dateverified'] = $this->getDateVerified();
     $list['customer.salutation'] = $this->getPaymentAddress()->getSalutation();
     $list['customer.company'] = $this->getPaymentAddress()->getCompany();
     $list['customer.vatid'] = $this->getPaymentAddress()->getVatID();
     $list['customer.title'] = $this->getPaymentAddress()->getTitle();
     $list['customer.firstname'] = $this->getPaymentAddress()->getFirstname();
     $list['customer.lastname'] = $this->getPaymentAddress()->getLastname();
     $list['customer.address1'] = $this->getPaymentAddress()->getAddress1();
     $list['customer.address2'] = $this->getPaymentAddress()->getAddress2();
     $list['customer.address3'] = $this->getPaymentAddress()->getAddress3();
     $list['customer.postal'] = $this->getPaymentAddress()->getPostal();
     $list['customer.city'] = $this->getPaymentAddress()->getCity();
     $list['customer.state'] = $this->getPaymentAddress()->getState();
     $list['customer.languageid'] = $this->getPaymentAddress()->getLanguageId();
     $list['customer.countryid'] = $this->getPaymentAddress()->getCountryId();
     $list['customer.telephone'] = $this->getPaymentAddress()->getTelephone();
     $list['customer.email'] = $this->getPaymentAddress()->getEmail();
     $list['customer.telefax'] = $this->getPaymentAddress()->getTelefax();
     $list['customer.website'] = $this->getPaymentAddress()->getWebsite();
     return $list;
 }
Esempio n. 4
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['attribute.domain'] = $this->getDomain();
     $list['attribute.code'] = $this->getCode();
     $list['attribute.status'] = $this->getStatus();
     $list['attribute.typeid'] = $this->getTypeId();
     $list['attribute.type'] = $this->getType();
     $list['attribute.position'] = $this->getPosition();
     $list['attribute.label'] = $this->getLabel();
     return $list;
 }
Esempio n. 5
0
 /**
  * Returns the item values as array.
  *
  * @return array Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['product.typename'] = $this->getTypeName();
     $list['product.typeid'] = $this->getTypeId();
     $list['product.type'] = $this->getType();
     $list['product.code'] = $this->getCode();
     $list['product.label'] = $this->getLabel();
     $list['product.status'] = $this->getStatus();
     $list['product.datestart'] = $this->getDateStart();
     $list['product.dateend'] = $this->getDateEnd();
     $list['product.config'] = $this->getConfig();
     return $list;
 }
Esempio n. 6
0
 /**
  * Returns the item values as array.
  *
  * @return array Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['price.typeid'] = $this->getTypeId();
     $list['price.type'] = $this->getType();
     $list['price.currencyid'] = $this->getCurrencyId();
     $list['price.domain'] = $this->getDomain();
     $list['price.quantity'] = $this->getQuantity();
     $list['price.value'] = $this->getValue();
     $list['price.costs'] = $this->getCosts();
     $list['price.rebate'] = $this->getRebate();
     $list['price.taxrate'] = $this->getTaxRate();
     $list['price.status'] = $this->getStatus();
     $list['price.label'] = $this->getLabel();
     return $list;
 }
Esempio n. 7
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['service.typeid'] = $this->getTypeId();
     $list['service.type'] = $this->getType();
     $list['service.code'] = $this->getCode();
     $list['service.label'] = $this->getLabel();
     $list['service.provider'] = $this->getProvider();
     $list['service.position'] = $this->getPosition();
     $list['service.config'] = $this->getConfig();
     $list['service.status'] = $this->getStatus();
     return $list;
 }
Esempio n. 8
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['media.domain'] = $this->getDomain();
     $list['media.label'] = $this->getLabel();
     $list['media.languageid'] = $this->getLanguageId();
     $list['media.mimetype'] = $this->getMimeType();
     $list['media.typeid'] = $this->getTypeId();
     $list['media.type'] = $this->getType();
     $list['media.url'] = $this->getUrl();
     $list['media.preview'] = $this->getPreview();
     $list['media.status'] = $this->getStatus();
     return $list;
 }
Esempio n. 9
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['supplier.code'] = $this->getCode();
     $list['supplier.label'] = $this->getLabel();
     $list['supplier.status'] = $this->getStatus();
     return $list;
 }