/** * {@inheritDoc} */ public function getAddressId() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getAddressId', array()); return parent::getAddressId(); }
/** * 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; }
/** * 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(); }