configureI18nProcessing($search, array('TITLE')); if (null !== $id = $this->getId()) { $search->filterById($id, Criteria::IN); } if (null !== $code = $this->getCode()) { $search->filterByCode($code, Criteria::IN); } if (null !== $excludeId = $this->getExcludeId()) { $search->filterById($excludeId, Criteria::NOT_IN); } if (null !== $isDefault = $this->getIsDefault()) { $search->filterByIsDefault($isDefault); } return $search; } /** * @param LoopResult $loopResult *` * @return LoopResult */ public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $customerFamily) { /** @var CustomerFamily $customerFamily */ $loopResultRow = new LoopResultRow($customerFamily); $loopResultRow ->set("CUSTOMER_FAMILY_ID", $customerFamily->getId()) ->set("CODE", $customerFamily->getCode()) ->set("TITLE_CUSTOMER_FAMILY", $customerFamily->getVirtualColumn('i18n_TITLE')) ->set("IS_DEFAULT", $customerFamily->getIsDefault()) ->set("CATEGORY_RESTRICTION_ENABLED", $customerFamily->getCategoryRestrictionEnabled()) ->set("BRAND_RESTRICTION_ENABLED", $customerFamily->getBrandRestrictionEnabled()); $loopResult->addRow($loopResultRow); } return $loopResult; } }