예제 #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
파일: Base.php 프로젝트: aimeos/aimeos-core
 /**
  * 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;
 }