Ejemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function getAddressId()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getAddressId', array());
     return parent::getAddressId();
 }
Ejemplo n.º 2
0
 /**
  * Get list item class name
  *
  * @param \XLite\Model\Address $address Address
  * @param integer              $i       Address position in addresses list
  *
  * @return string
  */
 public function getItemClassName(\XLite\Model\Address $address, $i)
 {
     $class = 'address-' . $address->getAddressId();
     if ($this->isSelectedAddress($address)) {
         $class .= ' selected';
     }
     if (0 == $i % $this->columnsNumber) {
         $class .= ' last';
     }
     return $class;
 }
Ejemplo n.º 3
0
 /**
  * Check - address is billing address or not
  *
  * @param \XLite\Model\Address $address Address
  *
  * @return boolean
  */
 protected function isBilling(\XLite\Model\Address $address)
 {
     return $this->getOrder()->getProfile()->getBillingAddress() && $address->getAddressId() == $this->getOrder()->getProfile()->getBillingAddress()->getAddressId();
 }