<?php
namespace Modules\Partners\Customers\Deduplicate; class View_Utils_FormFilters extends \App\Mvc\View_Utils_FormAbstract { public function getForm() { $fieldsValues = $this->values['listingParams']->getFilters(); $form = \Engine\Form\Filters::create(); $form->setColumns(1); $fld = new \Engine\Form\Input\Hidden(null, 'filters[suggestedIds]', $fieldsValues['suggestedIds']); $form->addElement($fld); $fld = new \Engine\Form\Input\Hidden(null, 'filters[mainSuggestion]', $fieldsValues['mainSuggestion']); $fld->setId('filters_mainSuggestion_'); $form->addElement($fld); $form->setJsCallback('MVC.listing.installedHandlers["listing"].reloadAndResetListing'); $form->loadMissingDefaultValues($this->values['listingParams']->getDefaultFilters()); return $form; } } 