| @@ 22-38 (lines=17) @@ | ||
| 19 | * | |
| 20 | * @author Carsten Bleek <[email protected]> | |
| 21 | */ | |
| 22 | class BaseFieldsetFactory implements FactoryInterface | |
| 23 | { | |
| 24 | /** | |
| 25 | * Creates the multiposting select box. | |
| 26 | */ | |
| 27 | public function createService(ServiceLocatorInterface $serviceLocator) | |
| 28 |     { | |
| 29 | /* @var $serviceLocator \Zend\ServiceManager\AbstractPluginManager */ | |
| 30 | ||
| 31 | $services = $serviceLocator->getServiceLocator(); | |
| 32 | /* @var \Geo\Options\ModuleOptions $options */ | |
| 33 |         $options = $services->get('Geo/Options'); | |
| 34 | $fs = new BaseFieldset(); | |
| 35 | $fs->setLocationEngineType($options->getPlugin()); | |
| 36 | return $fs; | |
| 37 | } | |
| 38 | } | |
| 39 | ||
| @@ 22-37 (lines=16) @@ | ||
| 19 | * | |
| 20 | * @author Carsten Bleek <[email protected]> | |
| 21 | */ | |
| 22 | class ListFilterLocationFieldsetFactory implements FactoryInterface | |
| 23 | { | |
| 24 | /** | |
| 25 | * Creates the multiposting select box. | |
| 26 | */ | |
| 27 | public function createService(ServiceLocatorInterface $serviceLocator) | |
| 28 |     { | |
| 29 | /* @var $serviceLocator \Zend\ServiceManager\AbstractPluginManager */ | |
| 30 | ||
| 31 | $services = $serviceLocator->getServiceLocator(); | |
| 32 | /* @var \Geo\Options\ModuleOptions $options */ | |
| 33 |         $options = $services->get('Geo/Options'); | |
| 34 | $fs = new ListFilterLocationFieldset(['location_engine_type' => $options->getPlugin()]); | |
| 35 | return $fs; | |
| 36 | } | |
| 37 | } | |
| 38 | ||
| @@ 15-35 (lines=21) @@ | ||
| 12 | use Zend\ServiceManager\FactoryInterface; | |
| 13 | use Zend\ServiceManager\ServiceLocatorInterface; | |
| 14 | ||
| 15 | class PreferredJobFieldsetFactory implements FactoryInterface | |
| 16 | { | |
| 17 | /** | |
| 18 | * Creates Preferred Job Form | |
| 19 | * | |
| 20 | * @param ServiceLocatorInterface $serviceLocator | |
| 21 | * @return PreferredJobFieldset | |
| 22 | */ | |
| 23 | public function createService(ServiceLocatorInterface $serviceLocator) | |
| 24 |     { | |
| 25 | /* @var $serviceLocator \Zend\ServiceManager\AbstractPluginManager */ | |
| 26 | ||
| 27 | $services = $serviceLocator->getServiceLocator(); | |
| 28 | /* @var \Geo\Options\ModuleOptions $options */ | |
| 29 |         $options = $services->get('Geo/Options'); | |
| 30 | $fs = new PreferredJobFieldset(); | |
| 31 | $fs->setLocationEngineType($options->getPlugin()); | |
| 32 | return $fs; | |
| 33 | } | |
| 34 | ||
| 35 | } | |
| @@ 16-30 (lines=15) @@ | ||
| 13 | use Zend\ServiceManager\FactoryInterface; | |
| 14 | use Zend\ServiceManager\ServiceLocatorInterface; | |
| 15 | ||
| 16 | class SearchFormFieldsetFactory implements FactoryInterface | |
| 17 | { | |
| 18 | public function createService(ServiceLocatorInterface $serviceLocator) | |
| 19 |     { | |
| 20 | /* @var $serviceLocator \Zend\ServiceManager\AbstractPluginManager */ | |
| 21 | ||
| 22 | $services = $serviceLocator->getServiceLocator(); | |
| 23 | ||
| 24 | /* @var \Geo\Options\ModuleOptions $options */ | |
| 25 |         $options = $services->get('Geo/Options'); | |
| 26 | $fs = new SearchFormFieldset(null, ['location_engine_type' => $options->getPlugin()]); | |
| 27 | return $fs; | |
| 28 | ||
| 29 | } | |
| 30 | } | |