/**
  * {@inheritDoc}
  */
 public function getShippingMarkups()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getShippingMarkups', array());
     return parent::getShippingMarkups();
 }
Beispiel #2
0
 /**
  * Returns list of zones as a string
  *
  * @param \XLite\Model\Shipping\Method $entity Shipping method
  *
  * @return string
  */
 protected function getZonesList($entity)
 {
     $result = '';
     $zones = array();
     foreach ($entity->getShippingMarkups() as $markup) {
         if ($markup && $markup->getZone() && !in_array($markup->getZone()->getZoneName(), $zones, true)) {
             $zones[] = $markup->getZone()->getZoneName();
         }
     }
     if (count($zones)) {
         sort($zones);
         $result = implode(', ', $zones);
     }
     return $result;
 }