/** * {@inheritDoc} */ public function getIsShipping() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getIsShipping', array()); return parent::getIsShipping(); }
/** * Check - address is shipping address or not * * @param \XLite\Model\Address $address Address * * @return boolean */ protected function isShipping(\XLite\Model\Address $address) { return $address->getIsShipping(); }
/** * Check - specified address is selected or not * * @param \XLite\Model\Address $address Address * * @return boolean */ public function isSelectedAddress(\XLite\Model\Address $address) { $atype = \XLite\Core\Request::getInstance()->atype; return $address->getIsShipping() && \XLite\Model\Address::SHIPPING == $atype || $address->getIsBilling() && \XLite\Model\Address::BILLING == $atype; }