/** * Build entity page URL * * @param \XLite\Model\AEntity $entity Entity * @param array $column Column data * * @return string */ protected function buildEntityURL(\XLite\Model\AEntity $entity, array $column) { if ('product' == $column[static::COLUMN_CODE]) { $result = \XLite\Core\Converter::buildURL('product', '', array('product_id' => $entity->getProduct()->getProductId())); } else { $result = parent::buildEntityURL($entity, $column); } return $result; }
/** * Build entity page URL * * @param \XLite\Model\AEntity $entity Entity * @param array $column Column data * * @return string */ protected function buildEntityURL(\XLite\Model\AEntity $entity, array $column) { switch ($column[static::COLUMN_LINK]) { case 'profile_list': $result = \XLite\Core\Converter::buildURL($column[static::COLUMN_LINK], '', array('membership' => $entity->getMembershipId())); break; default: $result = parent::buildEntityURL($entity, $column); break; } return $result; }
/** * Build entity page URL * * @param \XLite\Model\AEntity $entity Entity * @param array $column Column data * * @return string */ protected function buildEntityURL(\XLite\Model\AEntity $entity, array $column) { return 'order' == $column[static::COLUMN_CODE] ? \XLite\Core\Converter::buildURL('order', '', array('order_number' => $this->getOrder($entity)->getOrderNumber())) : parent::buildEntityURL($entity, $column); }
/** * Build entity page URL * @todo: reorder params * * @param \XLite\Model\AEntity $entity Entity * @param array $column Column data * * @return string */ protected function buildEntityURL(\XLite\Model\AEntity $entity, array $column) { /** @var \XLite\Model\Shipping\Method $entity */ return !$this->isOffline($entity) && 'name' === $column[static::COLUMN_CODE] ? $result = $entity->getProcessorObject()->getSettingsURL() : parent::buildEntityURL($entity, $column); }