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