Exemple #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 'customer.group.code':
                 $this->setCode($value);
                 break;
             case 'customer.group.label':
                 $this->setLabel($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Exemple #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 'log.facility':
                 $this->setFacility($value);
                 break;
             case 'log.priority':
                 $this->setPriority($value);
                 break;
             case 'log.message':
                 $this->setMessage($value);
                 break;
             case 'log.request':
                 $this->setRequest($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Exemple #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 'locale.currency.id':
                 $this->setId($value);
                 break;
             case 'locale.currency.code':
                 $this->setCode($value);
                 break;
             case 'locale.currency.label':
                 $this->setLabel($value);
                 break;
             case 'locale.currency.status':
                 $this->setStatus($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Exemple #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);
     foreach ($list as $key => $value) {
         switch ($key) {
             case $this->_prefix . 'code':
                 $this->setCode($value);
                 break;
             case $this->_prefix . 'domain':
                 $this->setDomain($value);
                 break;
             case $this->_prefix . 'label':
                 $this->setLabel($value);
                 break;
             case $this->_prefix . 'status':
                 $this->setStatus($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Exemple #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);
     foreach ($list as $key => $value) {
         switch ($key) {
             case 'order.base.coupon.baseid':
                 $this->setBaseId($value);
                 break;
             case 'order.base.coupon.productid':
                 $this->setProductId($value);
                 break;
             case 'order.base.coupon.code':
                 $this->setCode($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Exemple #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 'product.stock.productid':
                 $this->setProductId($value);
                 break;
             case 'product.stock.warehouseid':
                 $this->setWarehouseId($value);
                 break;
             case 'product.stock.stocklevel':
                 $this->setStocklevel($value);
                 break;
             case 'product.stock.dateback':
                 $this->setDateBack($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Exemple #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);
     foreach ($list as $key => $value) {
         switch ($key) {
             case $this->_prefix . 'parentid':
                 $this->setParentId($value);
                 break;
             case $this->_prefix . 'typeid':
                 $this->setTypeId($value);
                 break;
             case $this->_prefix . 'domain':
                 $this->setDomain($value);
                 break;
             case $this->_prefix . 'refid':
                 $this->setRefId($value);
                 break;
             case $this->_prefix . 'datestart':
                 $this->setDateStart($value);
                 break;
             case $this->_prefix . 'dateend':
                 $this->setDateEnd($value);
                 break;
             case $this->_prefix . 'config':
                 $this->setConfig($value);
                 break;
             case $this->_prefix . 'position':
                 $this->setPosition($value);
                 break;
             case $this->_prefix . 'status':
                 $this->setStatus($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Exemple #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 'plugin.typeid':
                 $this->setTypeId($value);
                 break;
             case 'plugin.label':
                 $this->setLabel($value);
                 break;
             case 'plugin.provider':
                 $this->setProvider($value);
                 break;
             case 'plugin.config':
                 $this->setConfig($value);
                 break;
             case 'plugin.status':
                 $this->setStatus($value);
                 break;
             case 'plugin.position':
                 $this->setPosition($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Exemple #9
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 'product.tag.typeid':
                 $this->setTypeId($value);
                 break;
             case 'product.tag.languageid':
                 $this->setLanguageId($value);
                 break;
             case 'product.tag.label':
                 $this->setLabel($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Exemple #10
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();
     if (isset($list['locale.siteid'])) {
         $this->setSiteId($list['locale.siteid']);
     }
     $list = parent::fromArray($list);
     foreach ($list as $key => $value) {
         switch ($key) {
             case 'locale.languageid':
                 $this->setLanguageId($value);
                 break;
             case 'locale.currencyid':
                 $this->setCurrencyId($value);
                 break;
             case 'locale.position':
                 $this->setPosition($value);
                 break;
             case 'locale.status':
                 $this->setStatus($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Exemple #11
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 'job.label':
                 $this->setLabel($value);
                 break;
             case 'job.method':
                 $this->setMethod($value);
                 break;
             case 'job.parameter':
                 $this->setParameter($value);
                 break;
             case 'job.result':
                 $this->setResult($value);
                 break;
             case 'job.status':
                 $this->setStatus($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Exemple #12
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 'coupon.code.count':
                 $this->setCount($value);
                 break;
             case 'coupon.code.code':
                 $this->setCode($value);
                 break;
             case 'coupon.code.couponid':
                 $this->setCouponId($value);
                 break;
             case 'coupon.code.datestart':
                 $this->setDateStart($value);
                 break;
             case 'coupon.code.dateend':
                 $this->setDateEnd($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Exemple #13
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 'coupon.config':
                 $this->setConfig($value);
                 break;
             case 'coupon.label':
                 $this->setLabel($value);
                 break;
             case 'coupon.datestart':
                 $this->setDateStart($value);
                 break;
             case 'coupon.dateend':
                 $this->setDateEnd($value);
                 break;
             case 'coupon.provider':
                 $this->setProvider($value);
                 break;
             case 'coupon.status':
                 $this->setStatus($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Exemple #14
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 'product.stock.warehouse.code':
                 $this->setCode($value);
                 break;
             case 'product.stock.warehouse.label':
                 $this->setLabel($value);
                 break;
             case 'product.stock.warehouse.status':
                 $this->setStatus($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Exemple #15
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 'cache.id':
                 $this->setId($value);
                 break;
             case 'cache.value':
                 $this->setValue($value);
                 break;
             case 'cache.expire':
                 $this->setTimeExpire($value);
                 break;
             case 'cache.tags':
                 $this->setTags($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Exemple #16
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 'download.userid':
                 $this->setUserId($value);
                 break;
             case 'download.fileid':
                 $this->setFileId($value);
                 break;
             case 'download.orderid':
                 $this->setOrderBaseId($value);
                 break;
             case 'download.downloads':
                 $this->setDownloads($value);
                 break;
             case 'download.url':
                 $this->setUrl($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Exemple #17
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 'order.base.service.attribute.attrid':
                 $this->setAttributeId($value);
                 break;
             case 'order.base.service.attribute.serviceid':
                 $this->setServiceId($value);
                 break;
             case 'order.base.service.attribute.type':
                 $this->setType($value);
                 break;
             case 'order.base.service.attribute.name':
                 $this->setName($value);
                 break;
             case 'order.base.service.attribute.code':
                 $this->setCode($value);
                 break;
             case 'order.base.service.attribute.value':
                 $this->setValue($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
Exemple #18
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 $this->_prefix . 'salutation':
                 $this->setSalutation($value);
                 break;
             case $this->_prefix . 'company':
                 $this->setCompany($value);
                 break;
             case $this->_prefix . 'vatid':
                 $this->setVatID($value);
                 break;
             case $this->_prefix . 'title':
                 $this->setTitle($value);
                 break;
             case $this->_prefix . 'firstname':
                 $this->setFirstname($value);
                 break;
             case $this->_prefix . 'lastname':
                 $this->setLastname($value);
                 break;
             case $this->_prefix . 'address1':
                 $this->setAddress1($value);
                 break;
             case $this->_prefix . 'address2':
                 $this->setAddress2($value);
                 break;
             case $this->_prefix . 'address3':
                 $this->setAddress3($value);
                 break;
             case $this->_prefix . 'postal':
                 $this->setPostal($value);
                 break;
             case $this->_prefix . 'city':
                 $this->setCity($value);
                 break;
             case $this->_prefix . 'state':
                 $this->setState($value);
                 break;
             case $this->_prefix . 'countryid':
                 $this->setCountryId($value);
                 break;
             case $this->_prefix . 'languageid':
                 $this->setLanguageId($value);
                 break;
             case $this->_prefix . 'telephone':
                 $this->setTelephone($value);
                 break;
             case $this->_prefix . 'telefax':
                 $this->setTelefax($value);
                 break;
             case $this->_prefix . 'email':
                 $this->setEmail($value);
                 break;
             case $this->_prefix . 'website':
                 $this->setWebsite($value);
                 break;
             case $this->_prefix . 'flag':
                 $this->setFlag($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }