示例#1
0
 /**
  * Sets the id of the order base object.
  *
  * @param string $id Unique ID of the order base object
  */
 public function setId($id)
 {
     if (($this->_values['id'] = MShop_Common_Item_Abstract::checkId($this->getId(), $id)) === null) {
         $this->_modified = true;
     } else {
         $this->_modified = false;
     }
 }
示例#2
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['price.unit.code'] = $this->getCode();
     $list['price.unit.label'] = $this->getLabel();
     $list['price.unit.status'] = $this->getStatus();
     return $list;
 }
示例#3
0
 /**
  * Returns an associative list of item properties.
  *
  * @return array List of item properties.
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list[$this->_prefix . 'code'] = $this->getCode();
     $list[$this->_prefix . 'domain'] = $this->getDomain();
     $list[$this->_prefix . 'label'] = $this->getLabel();
     $list[$this->_prefix . 'status'] = $this->getStatus();
     return $list;
 }
示例#4
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['order.base.service.attribute.attrid'] = $this->getAttributeId();
     $list['order.base.service.attribute.serviceid'] = $this->getServiceId();
     $list['order.base.service.attribute.type'] = $this->getType();
     $list['order.base.service.attribute.name'] = $this->getName();
     $list['order.base.service.attribute.code'] = $this->getCode();
     $list['order.base.service.attribute.value'] = $this->getValue();
     return $list;
 }
示例#5
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['product.property.parentid'] = $this->getParentId();
     $list['product.property.typeid'] = $this->getTypeId();
     $list['product.property.languageid'] = $this->getLanguageId();
     $list['product.property.value'] = $this->getValue();
     $list['product.property.type'] = $this->getType();
     return $list;
 }
示例#6
0
 /**
  * Initializes the item with the given values.
  *
  * @param string $prefix Prefix for the keys returned by toArray()
  * @param array $values Associative list of key/value pairs of the item properties
  * @param array $listItems Two dimensional associative list of domain / ID / list items that implement MShop_Common_Item_List_Interface
  * @param array $refItems Two dimensional associative list of domain / ID / domain items that implement MShop_Common_Item_Interface
  */
 public function __construct($prefix, array $values = array(), array $listItems = array(), array $refItems = array())
 {
     parent::__construct($prefix, $values);
     $this->_listItems = $listItems;
     $this->_refItems = $refItems;
 }
示例#7
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['coupon.config'] = $this->getConfig();
     $list['coupon.label'] = $this->getLabel();
     $list['coupon.datestart'] = $this->getDateStart();
     $list['coupon.dateend'] = $this->getDateEnd();
     $list['coupon.provider'] = $this->getProvider();
     $list['coupon.status'] = $this->getStatus();
     return $list;
 }
示例#8
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['locale.languageid'] = $this->getLanguageId();
     $list['locale.currencyid'] = $this->getCurrencyId();
     $list['locale.position'] = $this->getPosition();
     $list['locale.status'] = $this->getStatus();
     return $list;
 }
示例#9
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list[$this->_prefix . 'salutation'] = $this->getSalutation();
     $list[$this->_prefix . 'company'] = $this->getCompany();
     $list[$this->_prefix . 'vatid'] = $this->getVatID();
     $list[$this->_prefix . 'title'] = $this->getTitle();
     $list[$this->_prefix . 'firstname'] = $this->getFirstname();
     $list[$this->_prefix . 'lastname'] = $this->getLastname();
     $list[$this->_prefix . 'address1'] = $this->getAddress1();
     $list[$this->_prefix . 'address2'] = $this->getAddress2();
     $list[$this->_prefix . 'address3'] = $this->getAddress3();
     $list[$this->_prefix . 'postal'] = $this->getPostal();
     $list[$this->_prefix . 'city'] = $this->getCity();
     $list[$this->_prefix . 'state'] = $this->getState();
     $list[$this->_prefix . 'countryid'] = $this->getCountryId();
     $list[$this->_prefix . 'languageid'] = $this->getLanguageId();
     $list[$this->_prefix . 'telephone'] = $this->getTelephone();
     $list[$this->_prefix . 'telefax'] = $this->getTelefax();
     $list[$this->_prefix . 'email'] = $this->getEmail();
     $list[$this->_prefix . 'website'] = $this->getWebsite();
     $list[$this->_prefix . 'flag'] = $this->getFlag();
     return $list;
 }
示例#10
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['coupon.code.count'] = $this->getCount();
     $list['coupon.code.code'] = $this->getCode();
     $list['coupon.code.couponid'] = $this->getCouponId();
     $list['coupon.code.datestart'] = $this->getDateStart();
     $list['coupon.code.dateend'] = $this->getDateEnd();
     return $list;
 }
示例#11
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['supplier.label'] = $this->getLabel();
     $list['supplier.code'] = $this->getCode();
     $list['supplier.status'] = $this->getStatus();
     return $list;
 }
示例#12
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['locale.site.siteid'] = $this->getSiteId();
     $list['locale.site.code'] = $this->getCode();
     $list['locale.site.label'] = $this->getLabel();
     $list['locale.site.config'] = $this->getConfig();
     $list['locale.site.status'] = $this->getStatus();
     return $list;
 }
示例#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 '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;
 }
示例#14
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['plugin.type'] = $this->getType();
     $list['plugin.typeid'] = $this->getTypeId();
     $list['plugin.label'] = $this->getLabel();
     $list['plugin.provider'] = $this->getProvider();
     $list['plugin.config'] = $this->getConfig();
     $list['plugin.status'] = $this->getStatus();
     $list['plugin.position'] = $this->getPosition();
     return $list;
 }
示例#15
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['job.label'] = $this->getLabel();
     $list['job.method'] = $this->getMethod();
     $list['job.parameter'] = json_encode($this->getParameter());
     $list['job.result'] = json_encode($this->getResult());
     $list['job.status'] = $this->getStatus();
     return $list;
 }
示例#16
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['product.stock.warehouse.code'] = $this->getCode();
     $list['product.stock.warehouse.label'] = $this->getLabel();
     $list['product.stock.warehouse.status'] = $this->getStatus();
     return $list;
 }
示例#17
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['log.facility'] = $this->getFacility();
     $list['log.timestamp'] = $this->getTimestamp();
     $list['log.priority'] = $this->getPriority();
     $list['log.message'] = $this->getMessage();
     $list['log.request'] = $this->getRequest();
     return $list;
 }
示例#18
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['product.stock.productid'] = $this->getProductId();
     $list['product.stock.warehouseid'] = $this->getWarehouseId();
     $list['product.stock.stocklevel'] = $this->getStocklevel();
     $list['product.stock.dateback'] = $this->getDateBack();
     return $list;
 }
示例#19
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['download.userid'] = $this->getUserId();
     $list['download.fileid'] = $this->getFileId();
     $list['download.orderid'] = $this->getOrderBaseId();
     $list['download.downloads'] = $this->getDownloads();
     $list['download.url'] = $this->getUrl();
     return $list;
 }
示例#20
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list[$this->_prefix . 'parentid'] = $this->getParentId();
     $list[$this->_prefix . 'typeid'] = $this->getTypeId();
     $list[$this->_prefix . 'type'] = $this->getType();
     $list[$this->_prefix . 'domain'] = $this->getDomain();
     $list[$this->_prefix . 'refid'] = $this->getRefId();
     $list[$this->_prefix . 'datestart'] = $this->getDateStart();
     $list[$this->_prefix . 'dateend'] = $this->getDateEnd();
     $list[$this->_prefix . 'config'] = $this->getConfig();
     $list[$this->_prefix . 'position'] = $this->getPosition();
     $list[$this->_prefix . 'status'] = $this->getStatus();
     return $list;
 }
示例#21
0
 /**
  * Tests if the object was modified.
  *
  * @return boolean True if modified, false if not
  */
 public function isModified()
 {
     return $this->_modified || parent::isModified();
 }
示例#22
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['order.base.coupon.baseid'] = $this->getBaseId();
     $list['order.base.coupon.productid'] = $this->getProductId();
     $list['order.base.coupon.code'] = $this->getCode();
     return $list;
 }
示例#23
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['product.tag.typeid'] = $this->getTypeId();
     $list['product.tag.languageid'] = $this->getLanguageId();
     $list['product.tag.label'] = $this->getLabel();
     $list['product.tag.type'] = $this->getType();
     return $list;
 }
示例#24
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.group.code'] = $this->getCode();
     $list['customer.group.label'] = $this->getLabel();
     return $list;
 }