示例#1
0
 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['order.baseid'] = $this->getBaseId();
     $list['order.type'] = $this->getType();
     $list['order.statusdelivery'] = $this->getDeliveryStatus();
     $list['order.statuspayment'] = $this->getPaymentStatus();
     $list['order.datepayment'] = $this->getDatePayment();
     $list['order.datedelivery'] = $this->getDateDelivery();
     $list['order.relatedid'] = $this->getRelatedId();
     return $list;
 }
示例#2
0
 /**
  * Initializes the order product instance.
  *
  * @param \Aimeos\MShop\Price\Item\Iface $price Price item
  * @param array $values Associative list of order product values
  * @param array $attributes List of order attributes implementing \Aimeos\MShop\Order\Item\Base\Product\Attribute\Iface
  */
 public function __construct(\Aimeos\MShop\Price\Item\Iface $price, array $values = array(), array $attributes = array())
 {
     parent::__construct('order.base.product.', $values);
     \Aimeos\MW\Common\Base::checkClassList('\\Aimeos\\MShop\\Order\\Item\\Base\\Product\\Attribute\\Iface', $attributes);
     $this->attributes = $attributes;
 }