public function parseResults(LoopResult $loopResult) { $this->container->get('thelia.condition.factory'); if (null !== ($order = OrderQuery::create()->findPk($this->getOrder()))) { $oneDayInSeconds = 86400; /** @var \Thelia\Model\OrderCoupon $orderCoupon */ foreach ($loopResult->getResultDataCollection() as $orderCoupon) { $loopResultRow = new LoopResultRow($orderCoupon); $now = time(); $datediff = $orderCoupon->getExpirationDate()->getTimestamp() - $now; $daysLeftBeforeExpiration = floor($datediff / $oneDayInSeconds); $freeShippingForCountriesIds = []; /** @var OrderCouponCountry $couponCountry */ foreach ($orderCoupon->getFreeShippingForCountries() as $couponCountry) { $freeShippingForCountriesIds[] = $couponCountry->getCountryId(); } $freeShippingForModulesIds = []; /** @var OrderCouponModule $couponModule */ foreach ($orderCoupon->getFreeShippingForModules() as $couponModule) { $freeShippingForModulesIds[] = $couponModule->getModuleId(); } $loopResultRow->set("ID", $orderCoupon->getId())->set("CODE", $orderCoupon->getCode())->set("DISCOUNT_AMOUNT", $orderCoupon->getAmount())->set("TITLE", $orderCoupon->getTitle())->set("SHORT_DESCRIPTION", $orderCoupon->getShortDescription())->set("DESCRIPTION", $orderCoupon->getDescription())->set("EXPIRATION_DATE", $orderCoupon->getExpirationDate($order->getLangId()))->set("IS_CUMULATIVE", $orderCoupon->getIsCumulative())->set("IS_REMOVING_POSTAGE", $orderCoupon->getIsRemovingPostage())->set("IS_AVAILABLE_ON_SPECIAL_OFFERS", $orderCoupon->getIsAvailableOnSpecialOffers())->set("DAY_LEFT_BEFORE_EXPIRATION", $daysLeftBeforeExpiration)->set("FREE_SHIPPING_FOR_COUNTRIES_LIST", implode(',', $freeShippingForCountriesIds))->set("FREE_SHIPPING_FOR_MODULES_LIST", implode(',', $freeShippingForModulesIds))->set("PER_CUSTOMER_USAGE_COUNT", $orderCoupon->getPerCustomerUsageCount())->set("IS_USAGE_CANCELED", $orderCoupon->getUsageCanceled()); $this->addOutputFields($loopResultRow, $orderCoupon); $loopResult->addRow($loopResultRow); } } return $loopResult; }
public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $item) { // var_dump($item); die(); $loopResultRow = new LoopResultRow(); if ((bool) $this->getDisplayLink() == true) { $tweet = $item->text; // Screen name link $pattern = '@(https?://([-\\w\\.]+)+(/([\\w/_\\.]*(\\?\\S+)?(#\\S+)?)?)?)@'; $replacement = '<a href="$1">$1</a>'; $tweet = preg_replace($pattern, $replacement, $tweet); // HTTP(S) link $pattern = '/@(\\w+)/i'; $replacement = '<a href="https://www.twitter.com/$1">@$1</a>'; $tweet = preg_replace($pattern, $replacement, $tweet); // Hashtag link $pattern = '/\\s+#(\\w+)/'; $replacement = ' <a href="http://search.twitter.com/search?q=%23$1">#$1</a>'; $tweet = preg_replace($pattern, $replacement, $tweet); $loopResultRow->set("TEXT", preg_replace($pattern, $replacement, $tweet)); } else { $loopResultRow->set("TEXT", $item->text); } $datetime = new \DateTime($item->created_at); $datetime->setTimezone(new \DateTimeZone('Europe/Zurich')); // echo $datetime->format('U'); // echo $item->created_at; // die(strtotime($item->created_at)); $loopResultRow->set("CREATED_AT", $datetime->format('U')); $loopResult->addRow($loopResultRow); } return $loopResult; }
public function parseComplexResults(LoopResult $loopResult) { $taxCalculator = new Calculator(); $taxCountry = $this->container->get('thelia.taxEngine')->getDeliveryCountry(); /** @var \Thelia\Core\Security\SecurityContext $securityContext */ $securityContext = $this->container->get('thelia.securityContext'); /** @var \Thelia\Model\Product $product */ foreach ($loopResult->getResultDataCollection() as $product) { $loopResultRow = new LoopResultRow($product); $price = $product->getRealLowestPrice(); if ($securityContext->hasCustomerUser() && $securityContext->getCustomerUser()->getDiscount() > 0) { $price = $price * (1 - $securityContext->getCustomerUser()->getDiscount() / 100); } try { $taxedPrice = round($taxCalculator->load($product, $taxCountry)->getTaxedPrice($price), 2); } catch (TaxEngineException $e) { $taxedPrice = null; } // Find previous and next product, in the default category. $default_category_id = $product->getVirtualColumn('DefaultCategoryId'); $loopResultRow->set("BEST_PRICE", $price)->set("BEST_PRICE_TAX", $taxedPrice - $price)->set("BEST_TAXED_PRICE", $taxedPrice)->set("IS_PROMO", $product->getVirtualColumn('main_product_is_promo'))->set("IS_NEW", $product->getVirtualColumn('main_product_is_new')); $loopResult->addRow($this->associateValues($loopResultRow, $product, $default_category_id)); } return $loopResult; }
/** * @param LoopResult $loopResult * * @return LoopResult */ public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $menuItem) { $loopResultRow = new LoopResultRow($menuItem); // $title=$menuItem->getVirtualColumn('i18n_TITLE'); $type = 'category'; switch ($menuItem->getTypobj()) { case 0: /* $category = CategoryI18nQuery::create()->findOneById($menuItem->getObjet()); $category->setLocale('fr_FR'); if(!$title)$title=$category->getTitle();*/ $type = 'category'; break; case 1: $type = 'product'; break; case 2: $type = 'folder'; break; case 3: $type = 'content'; break; } $loopResultRow->set('ID', $menuItem->getId())->set('OBJET', $menuItem->getObjet())->set('TYPE', $type); $loopResult->addRow($loopResultRow); } return $loopResult; }
public function parseResults(LoopResult $loopResult) { $country = $this->getCurrentCountry(); $state = $this->getCurrentState(); $cart = $this->request->getSession()->getSessionCart($this->dispatcher); $virtual = $cart->isVirtual(); /** @var Module $deliveryModule */ foreach ($loopResult->getResultDataCollection() as $deliveryModule) { $areaDeliveryModule = AreaDeliveryModuleQuery::create()->findByCountryAndModule($country, $deliveryModule, $state); if (null === $areaDeliveryModule && false === $virtual) { continue; } /** @var DeliveryModuleInterface $moduleInstance */ $moduleInstance = $deliveryModule->getDeliveryModuleInstance($this->container); if (true === $virtual && false === $moduleInstance->handleVirtualProductDelivery() && false === $this->getBackendContext()) { continue; } $loopResultRow = new LoopResultRow($deliveryModule); try { // Check if module is valid, by calling isValidDelivery(), // or catching a DeliveryException. if ($moduleInstance->isValidDelivery($country)) { $postage = OrderPostage::loadFromPostage($moduleInstance->getPostage($country)); $loopResultRow->set('ID', $deliveryModule->getId())->set('CODE', $deliveryModule->getCode())->set('TITLE', $deliveryModule->getVirtualColumn('i18n_TITLE'))->set('CHAPO', $deliveryModule->getVirtualColumn('i18n_CHAPO'))->set('DESCRIPTION', $deliveryModule->getVirtualColumn('i18n_DESCRIPTION'))->set('POSTSCRIPTUM', $deliveryModule->getVirtualColumn('i18n_POSTSCRIPTUM'))->set('POSTAGE', $postage->getAmount())->set('POSTAGE_TAX', $postage->getAmountTax())->set('POSTAGE_UNTAXED', $postage->getAmount() - $postage->getAmountTax())->set('POSTAGE_TAX_RULE_TITLE', $postage->getTaxRuleTitle()); $this->addOutputFields($loopResultRow, $deliveryModule); $loopResult->addRow($loopResultRow); } } catch (DeliveryException $ex) { // Module is not available } } return $loopResult; }
public function parseResults(LoopResult $loopResult) { $taxCountry = $this->container->get('thelia.taxEngine')->getDeliveryCountry(); $locale = $this->request->getSession()->getLang()->getLocale(); $checkAvailability = ConfigQuery::checkAvailableStock(); $defaultAvailability = intval(ConfigQuery::read('default-available-stock', 100)); /** @var CartItemModel $cartItem */ foreach ($loopResult->getResultDataCollection() as $cartItem) { $product = $cartItem->getProduct(null, $locale); $productSaleElement = $cartItem->getProductSaleElements(); $loopResultRow = new LoopResultRow(); $loopResultRow->set("ITEM_ID", $cartItem->getId()); $loopResultRow->set("TITLE", $product->getTitle()); $loopResultRow->set("REF", $product->getRef()); $loopResultRow->set("QUANTITY", $cartItem->getQuantity()); $loopResultRow->set("PRODUCT_ID", $product->getId()); $loopResultRow->set("PRODUCT_URL", $product->getUrl($this->request->getSession()->getLang()->getLocale())); if (!$checkAvailability || $product->getVirtual() === 1) { $loopResultRow->set("STOCK", $defaultAvailability); } else { $loopResultRow->set("STOCK", $productSaleElement->getQuantity()); } $loopResultRow->set("PRICE", $cartItem->getPrice())->set("PROMO_PRICE", $cartItem->getPromoPrice())->set("TAXED_PRICE", $cartItem->getTaxedPrice($taxCountry))->set("PROMO_TAXED_PRICE", $cartItem->getTaxedPromoPrice($taxCountry))->set("IS_PROMO", $cartItem->getPromo() === 1 ? 1 : 0); $loopResultRow->set("TOTAL_PRICE", $cartItem->getPrice() * $cartItem->getQuantity())->set("TOTAL_PROMO_PRICE", $cartItem->getPromoPrice() * $cartItem->getQuantity())->set("TOTAL_TAXED_PRICE", $cartItem->getTotalTaxedPrice($taxCountry))->set("TOTAL_PROMO_TAXED_PRICE", $cartItem->getTotalTaxedPromoPrice($taxCountry)); $loopResultRow->set("PRODUCT_SALE_ELEMENTS_ID", $productSaleElement->getId()); $loopResultRow->set("PRODUCT_SALE_ELEMENTS_REF", $productSaleElement->getRef()); $this->addOutputFields($loopResultRow, $cartItem); $loopResult->addRow($loopResultRow); } return $loopResult; }
/** * @param LoopResult $loopResult * * @return LoopResult */ public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $id) { $loopResultRow = new LoopResultRow(); $loopResult->addRow($loopResultRow->set('MODULE_ID', $id)); } return $loopResult; }
/** * @param LoopResult $loopResult * * @return LoopResult */ public function parseResults(LoopResult $loopResult) { $address = $loopResult->getResultDataCollection(); $loopResultRow = new LoopResultRow($address); $loopResultRow->set("ID", $address['Id'])->set("LABEL", $address['Label'])->set("CUSTOMER", $address['CustomerId'])->set("TITLE", $address['TitleId'])->set("COMPANY", $address['Company'])->set("FIRSTNAME", $address['Firstname'])->set("LASTNAME", $address['Lastname'])->set("ADDRESS1", $address['Address1'])->set("ADDRESS2", $address['Address2'])->set("ADDRESS3", $address['Address3'])->set("ZIPCODE", $address['Zipcode'])->set("CITY", $address['City'])->set("COUNTRY", $address['CountryId'])->set("PHONE", $address['Phone'])->set("CELLPHONE", $address['Cellphone'])->set("DEFAULT", $address['IsDefault']); $loopResult->addRow($loopResultRow); return $loopResult; }
public function parseResults(LoopResult $loopResult) { $item = $loopResult->getResultDataCollection(); $loopResultRow = new LoopResultRow(); $loopResultRow->set('ORDER_COMMENT', $item['comment']); $loopResult->addRow($loopResultRow); return $loopResult; }
public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $orderProductTax) { $loopResultRow = new LoopResultRow($orderProductTax); $loopResultRow->set("ID", $orderProductTax->getId())->set("TITLE", $orderProductTax->getTitle())->set("DESCRIPTION", $orderProductTax->getDescription())->set("AMOUNT", $orderProductTax->getAmount())->set("PROMO_AMOUNT", $orderProductTax->getPromoAmount()); $loopResult->addRow($loopResultRow); } return $loopResult; }
public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $orderAttributeCombination) { $loopResultRow = new LoopResultRow($orderAttributeCombination); $loopResultRow->set("ATTRIBUTE_TITLE", $orderAttributeCombination->getAttributeTitle())->set("ATTRIBUTE_CHAPO", $orderAttributeCombination->getAttributeChapo())->set("ATTRIBUTE_DESCRIPTION", $orderAttributeCombination->getAttributeDescription())->set("ATTRIBUTE_POSTSCRIPTUM", $orderAttributeCombination->getAttributePostscriptum())->set("ATTRIBUTE_AVAILABILITY_TITLE", $orderAttributeCombination->getAttributeAvTitle())->set("ATTRIBUTE_AVAILABILITY_CHAPO", $orderAttributeCombination->getAttributeAvChapo())->set("ATTRIBUTE_AVAILABILITY_DESCRIPTION", $orderAttributeCombination->getAttributeAvDescription())->set("ATTRIBUTE_AVAILABILITY_POSTSCRIPTUM", $orderAttributeCombination->getAttributeAvPostscriptum()); $loopResult->addRow($loopResultRow); } return $loopResult; }
public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $profile) { $loopResultRow = new LoopResultRow($profile); $loopResultRow->set("ID", $profile->getId())->set("IS_TRANSLATED", $profile->getVirtualColumn('IS_TRANSLATED'))->set("LOCALE", $this->locale)->set("CODE", $profile->getCode())->set("TITLE", $profile->getVirtualColumn('i18n_TITLE'))->set("CHAPO", $profile->getVirtualColumn('i18n_CHAPO'))->set("DESCRIPTION", $profile->getVirtualColumn('i18n_DESCRIPTION'))->set("POSTSCRIPTUM", $profile->getVirtualColumn('i18n_POSTSCRIPTUM')); $loopResult->addRow($loopResultRow); } return $loopResult; }
public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $result) { $loopResultRow = new LoopResultRow($result); $loopResultRow->set("ID", $result->getId())->set("NAME", $result->getName())->set("IS_TRANSLATED", $result->getVirtualColumn('IS_TRANSLATED'))->set("LOCALE", $this->locale)->set("TITLE", $result->getVirtualColumn('i18n_TITLE'))->set("SUBJECT", $result->getVirtualColumn('i18n_SUBJECT'))->set("TEXT_MESSAGE", $result->getVirtualColumn('i18n_TEXT_MESSAGE'))->set("HTML_MESSAGE", $result->getVirtualColumn('i18n_HTML_MESSAGE'))->set("SECURED", $result->getSecured()); $loopResult->addRow($loopResultRow); } return $loopResult; }
public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $template) { $loopResultRow = new LoopResultRow($template); $loopResultRow->set("ID", $template->getId())->set("IS_TRANSLATED", $template->getVirtualColumn('IS_TRANSLATED'))->set("LOCALE", $this->locale)->set("NAME", $template->getVirtualColumn('i18n_NAME')); $loopResult->addRow($loopResultRow); } return $loopResult; }
public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $item) { $loopResultRow = new LoopResultRow(); $loopResultRow->set("URL", $item->get_permalink())->set("TITLE", $item->get_title())->set("AUTHOR", $item->get_author())->set("DESCRIPTION", $item->get_description())->set("DATE", $item->get_date('U')); $loopResult->addRow($loopResultRow); } return $loopResult; }
public function parseResults(LoopResult $loopResult) { if ($loopResult->getResultDataCollectionCount() > 0) { $loopResultRow = new LoopResultRow(); $loopResultRow->set('AMOUNT_USED', $this->request->getSession()->get('creditAccount.amount', 0)); $loopResult->addRow($loopResultRow); } return $loopResult; }
public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $ref => $code) { $loopResultRow = new LoopResultRow(); $loopResultRow->set("URL", sprintf(self::BASE_URL, $code)); $loopResult->addRow($loopResultRow); } return $loopResult; }
public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $country) { $loopResultRow = new LoopResultRow($country); $loopResultRow->set("ID", $country->getId())->set("IS_TRANSLATED", $country->getVirtualColumn('IS_TRANSLATED'))->set("LOCALE", $this->locale)->set("TITLE", $country->getVirtualColumn('i18n_TITLE'))->set("CHAPO", $country->getVirtualColumn('i18n_CHAPO'))->set("DESCRIPTION", $country->getVirtualColumn('i18n_DESCRIPTION'))->set("POSTSCRIPTUM", $country->getVirtualColumn('i18n_POSTSCRIPTUM'))->set("ISOCODE", $country->getIsocode())->set("ISOALPHA2", $country->getIsoalpha2())->set("ISOALPHA3", $country->getIsoalpha3())->set("IS_DEFAULT", $country->getByDefault() ? "1" : "0")->set("IS_SHOP_COUNTRY", $country->getShopCountry() ? "1" : "0"); $loopResult->addRow($loopResultRow); } return $loopResult; }
public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $template) { $loopResultRow = new LoopResultRow($template); $loopResultRow->set("NAME", $template->getName())->set("RELATIVE_PATH", $template->getPath())->set("ABSOLUTE_PATH", $template->getAbsolutePath()); $loopResult->addRow($loopResultRow); } return $loopResult; }
public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $address) { $loopResultRow = new LoopResultRow($address); $loopResultRow->set("ID", $address->getId())->set("LABEL", $address->getLabel())->set("CUSTOMER", $address->getCustomerId())->set("TITLE", $address->getTitleId())->set("COMPANY", $address->getCompany())->set("FIRSTNAME", $address->getFirstname())->set("LASTNAME", $address->getLastname())->set("ADDRESS1", $address->getAddress1())->set("ADDRESS2", $address->getAddress2())->set("ADDRESS3", $address->getAddress3())->set("ZIPCODE", $address->getZipcode())->set("CITY", $address->getCity())->set("COUNTRY", $address->getCountryId())->set("PHONE", $address->getPhone())->set("CELLPHONE", $address->getCellphone())->set("DEFAULT", $address->getIsDefault()); $loopResult->addRow($loopResultRow); } return $loopResult; }
/** * @param LoopResult $loopResult * * @return LoopResult */ public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $delivery) { $loopResultRow = new LoopResultRow(); $loopResultRow->set("DELIVERY_TYPE", $delivery["deliveryType"])->set("DELIVERY_START_DATE", $delivery["deliveryStartDate"])->set("DATE_MIN", $delivery["deliveryMin"])->set("DATE_MAX", $delivery["deliveryMax"]); $loopResult->addRow($loopResultRow); } return $loopResult; }
public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $arr) { $loopResultRow = new LoopResultRow(); $loopResultRow->set("ERRMES", $arr["ERRMES"])->set("ERRFILE", $arr["ERRFILE"]); $loopResult->addRow($loopResultRow); } return $loopResult; }
/** * @param LoopResult $loopResult * * @return LoopResult */ public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $category) { $loopResultRow = new LoopResultRow($category); $loopResultRow->set("ID", $category->getId())->set("TITLE", $category->getVirtualColumn("i18n_TITLE"))->set("POSITION", $category->getPosition()); $loopResult->addRow($loopResultRow); } return $loopResult; }
/** * @param LoopResult $loopResult * * @return LoopResult */ public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $view) { $loopResultRow = new LoopResultRow($view); $loopResultRow->set('FRONT_VIEW', $view['name'])->set('VIEW_ID', $view['id']); $loopResult->addRow($loopResultRow); } return $loopResult; }
public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $maxWeight => $price) { $loopResultRow = new LoopResultRow(); $loopResultRow->set("MAX_WEIGHT", $maxWeight)->set("PRICE", $price); $loopResult->addRow($loopResultRow); } return $loopResult; }
public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $title) { $loopResultRow = new LoopResultRow($title); $loopResultRow->set("ID", $title->getId())->set("IS_TRANSLATED", $title->getVirtualColumn('IS_TRANSLATED'))->set("LOCALE", $this->locale)->set("DEFAULT", $title->getByDefault())->set("SHORT", $title->getVirtualColumn('i18n_SHORT'))->set("LONG", $title->getVirtualColumn('i18n_LONG'))->set("POSITION", $title->getPosition()); $loopResult->addRow($loopResultRow); } return $loopResult; }
/** * @param LoopResult $loopResult * * @return LoopResult */ public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $menu) { $loopResultRow = new LoopResultRow($menu); $loopResultRow->set('ID', $menu->getId())->set('TITLE', $menu->getVirtualColumn('i18n_TITLE'))->set('DESCRIPTION', $menu->getVirtualColumn('i18n_DESCRIPTION'))->set('VISIBLE', $menu->getVisible()); $loopResult->addRow($loopResultRow); } return $loopResult; }
public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $admin) { $loopResultRow = new LoopResultRow($admin); $loopResultRow->set("ID", $admin->getId())->set("PROFILE", $admin->getProfileId())->set("FIRSTNAME", $admin->getFirstname())->set("LASTNAME", $admin->getLastname())->set("LOGIN", $admin->getLogin())->set("LOCALE", $admin->getLocale()); $loopResult->addRow($loopResultRow); } return $loopResult; }
public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $featureValue) { $loopResultRow = new LoopResultRow($featureValue); $loopResultRow->set("ID", $featureValue->getId())->set("PRODUCT", $featureValue->getProductId())->set("FEATURE_AV_ID", $featureValue->getFeatureAvId())->set("FREE_TEXT_VALUE", $featureValue->getFreeTextValue())->set("IS_FREE_TEXT", is_null($featureValue->getFeatureAvId()) ? 1 : 0)->set("IS_FEATURE_AV", is_null($featureValue->getFeatureAvId()) ? 0 : 1)->set("LOCALE", $this->locale)->set("TITLE", $featureValue->getVirtualColumn(FeatureAvTableMap::TABLE_NAME . '_i18n_TITLE'))->set("CHAPO", $featureValue->getVirtualColumn(FeatureAvTableMap::TABLE_NAME . '_i18n_CHAPO'))->set("DESCRIPTION", $featureValue->getVirtualColumn(FeatureAvTableMap::TABLE_NAME . '_i18n_DESCRIPTION'))->set("POSTSCRIPTUM", $featureValue->getVirtualColumn(FeatureAvTableMap::TABLE_NAME . '_i18n_POSTSCRIPTUM'))->set("POSITION", $featureValue->getPosition()); $loopResult->addRow($loopResultRow); } return $loopResult; }
public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $taxRule) { $loopResultRow = new LoopResultRow($taxRule); $loopResultRow->set("ID", $taxRule->getId())->set("IS_TRANSLATED", $taxRule->getVirtualColumn('IS_TRANSLATED'))->set("LOCALE", $this->locale)->set("TITLE", $taxRule->getVirtualColumn('i18n_TITLE'))->set("DESCRIPTION", $taxRule->getVirtualColumn('i18n_DESCRIPTION'))->set("IS_DEFAULT", $taxRule->getIsDefault() ? '1' : '0'); $loopResult->addRow($loopResultRow); } return $loopResult; }