/** * {@inheritDoc} */ public function getIsBilling() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getIsBilling', array()); return parent::getIsBilling(); }
/** * Check - address is billing address or not * * @param \XLite\Model\Address $address Address * * @return boolean */ protected function isBilling(\XLite\Model\Address $address) { return $address->getIsBilling(); }
/** * 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; }