<?php
 namespace Modules\Admin\AutoProcessRules\BulkUpdate\ProcessImportedServices; class Controller extends \Modules\Admin\AutoProcessRules\BulkUpdate\ControllerAbstract { public function populateAutoProcessRule($ruleObj, $R) { if ($R['selectStopOnPsgMultipleMatch'] == 'update') { $ruleObj->addField('stopOnPsgMultipleMatch', $R['stopOnPsgMultipleMatch']); } if ($R['selectUpdateMatchedPsg'] == 'update') { $ruleObj->addField('updateMatchedPsgProfile', $R['updateMatchedPsgProfile']); } if ($R['selectStopOnDuplicateServices'] == 'update') { $ruleObj->addField('stopOnDuplicateServices', $R['stopOnDuplicateServices']); } if ($R['selectOrderResp'] == 'update') { $ruleObj->addField('orderIdResponsibleUser', $R['orderResponsible']['id']); } if ($R['selectOrderServicesType'] == 'update') { $ruleObj->addField('orderServicesType', $R['orderServicesType']); } } }