Ejemplo n.º 1
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;
 }
Ejemplo 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 'attribute.domain':
                 $this->setDomain($value);
                 break;
             case 'attribute.code':
                 $this->setCode($value);
                 break;
             case 'attribute.status':
                 $this->setStatus($value);
                 break;
             case 'attribute.typeid':
                 $this->setTypeId($value);
                 break;
             case 'attribute.position':
                 $this->setPosition($value);
                 break;
             case 'attribute.label':
                 $this->setLabel($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Ejemplo n.º 3
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 'text.languageid':
                 $this->setLanguageId($value);
                 break;
             case 'text.typeid':
                 $this->setTypeId($value);
                 break;
             case 'text.label':
                 $this->setLabel($value);
                 break;
             case 'text.domain':
                 $this->setDomain($value);
                 break;
             case 'text.content':
                 $this->setContent($value);
                 break;
             case 'text.status':
                 $this->setStatus($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Ejemplo n.º 4
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);
     $addr = $this->getPaymentAddress();
     foreach ($list as $key => $value) {
         switch ($key) {
             case 'customer.label':
                 $this->setLabel($value);
                 break;
             case 'customer.code':
                 $this->setCode($value);
                 break;
             case 'customer.birthday':
                 $this->setBirthday($value);
                 break;
             case 'customer.status':
                 $this->setStatus($value);
                 break;
             case 'customer.password':
                 $this->setPassword($value);
                 break;
             case 'customer.dateverified':
                 $this->setDateVerified($value);
                 break;
             case 'customer.salutation':
                 $addr->setSalutation($value);
                 break;
             case 'customer.company':
                 $addr->setCompany($value);
                 break;
             case 'customer.vatid':
                 $addr->setVatID($value);
                 break;
             case 'customer.title':
                 $addr->setTitle($value);
                 break;
             case 'customer.firstname':
                 $addr->setFirstname($value);
                 break;
             case 'customer.lastname':
                 $addr->setLastname($value);
                 break;
             case 'customer.address1':
                 $addr->setAddress1($value);
                 break;
             case 'customer.address2':
                 $addr->setAddress2($value);
                 break;
             case 'customer.address3':
                 $addr->setAddress3($value);
                 break;
             case 'customer.postal':
                 $addr->setPostal($value);
                 break;
             case 'customer.city':
                 $addr->setCity($value);
                 break;
             case 'customer.state':
                 $addr->setState($value);
                 break;
             case 'customer.languageid':
                 $addr->setLanguageId($value);
                 break;
             case 'customer.countryid':
                 $addr->setCountryId($value);
                 break;
             case 'customer.telephone':
                 $addr->setTelephone($value);
                 break;
             case 'customer.email':
                 $addr->setEmail($value);
                 break;
             case 'customer.telefax':
                 $addr->setTelefax($value);
                 break;
             case 'customer.website':
                 $addr->setWebsite($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Ejemplo n.º 5
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);
     unset($list['product.type'], $list['product.typename']);
     foreach ($list as $key => $value) {
         switch ($key) {
             case 'product.typeid':
                 $this->setTypeId($value);
                 break;
             case 'product.code':
                 $this->setCode($value);
                 break;
             case 'product.label':
                 $this->setLabel($value);
                 break;
             case 'product.status':
                 $this->setStatus($value);
                 break;
             case 'product.datestart':
                 $this->setDateStart($value);
                 break;
             case 'product.dateend':
                 $this->setDateEnd($value);
                 break;
             case 'product.config':
                 $this->setConfig($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Ejemplo n.º 6
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 'price.typeid':
                 $this->setTypeId($value);
                 break;
             case 'price.currencyid':
                 $this->setCurrencyId($value);
                 break;
             case 'price.domain':
                 $this->setDomain($value);
                 break;
             case 'price.quantity':
                 $this->setQuantity($value);
                 break;
             case 'price.value':
                 $this->setValue($value);
                 break;
             case 'price.costs':
                 $this->setCosts($value);
                 break;
             case 'price.rebate':
                 $this->setRebate($value);
                 break;
             case 'price.taxrate':
                 $this->setTaxRate($value);
                 break;
             case 'price.status':
                 $this->setStatus($value);
                 break;
             case 'price.label':
                 $this->setLabel($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Ejemplo n.º 7
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);
     unset($list['service.type'], $list['service.typename']);
     foreach ($list as $key => $value) {
         switch ($key) {
             case 'service.typeid':
                 $this->setTypeId($value);
                 break;
             case 'service.code':
                 $this->setCode($value);
                 break;
             case 'service.label':
                 $this->setLabel($value);
                 break;
             case 'service.provider':
                 $this->setProvider($value);
                 break;
             case 'service.position':
                 $this->setPosition($value);
                 break;
             case 'service.config':
                 $this->setConfig($value);
                 break;
             case 'service.status':
                 $this->setStatus($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Ejemplo n.º 8
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 'media.domain':
                 $this->setDomain($value);
                 break;
             case 'media.label':
                 $this->setLabel($value);
                 break;
             case 'media.languageid':
                 $this->setLanguageId($value);
                 break;
             case 'media.mimetype':
                 $this->setMimeType($value);
                 break;
             case 'media.typeid':
                 $this->setTypeId($value);
                 break;
             case 'media.url':
                 $this->setUrl($value);
                 break;
             case 'media.preview':
                 $this->setPreview($value);
                 break;
             case 'media.status':
                 $this->setStatus($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }