<?php
namespace Modules\Orders\Apollo\Collector\Model; class ConvertInputToFilters extends \ModulesAbstract\ImportedOrdersFileManager\Model\ConvertInputToFilters { protected function convertInputFilterToObjectFilter($filterType, $filterMode, $input, $minCount, $maxCount, $negate) { if ($filterType == 'fileParser') { $filterFileParser = new \Modules\Orders\Apollo\Collector\Model\Filters\FileParser(); $filterFileParser->setFilterMode($filterMode); $filterFileParser->setInput($input); $filterFileParser->setCountLimit($minCount, $maxCount); $filterFileParser->negateFilter($negate); $this->filters[] = $filterFileParser; } if ($filterType == 'structureParser') { $filterStructureParser = new \Modules\Orders\Apollo\Collector\Model\Filters\StructureParser(); $filterStructureParser->setFilterMode($filterMode); $filterStructureParser->setInput($input); $filterStructureParser->setCountLimit($minCount, $maxCount); $filterStructureParser->negateFilter($negate); $this->filters[] = $filterStructureParser; } if ($filterType == 'content') { $filterContent = new \Modules\Orders\Apollo\Collector\Model\Filters\Content(); $filterContent->setFilterMode($filterMode); $input = sprintf("/(?P<extract>%s)/m", $input); $filterContent->setInput($input); $filterContent->setCountLimit($minCount, $maxCount); $filterContent->negateFilter($negate); $this->filters[] = $filterContent; $filterType = NULL; } parent::convertInputFilterToObjectFilter($filterType, $filterMode, $input, $minCount, $maxCount, $negate); } protected function populateFilterHelper($filterType) { parent::populateFilterHelper($filterType); if ($filterType == 'content') { } } } 