@@ -208,13 +208,13 @@ discard block |
||
| 208 | 208 | return $this->email; |
| 209 | 209 | } |
| 210 | 210 | |
| 211 | - /** |
|
| 212 | - * @return bool |
|
| 213 | - */ |
|
| 214 | - public function getOneClickApply() |
|
| 215 | - { |
|
| 216 | - return $this->oneClickApply; |
|
| 217 | - } |
|
| 211 | + /** |
|
| 212 | + * @return bool |
|
| 213 | + */ |
|
| 214 | + public function getOneClickApply() |
|
| 215 | + { |
|
| 216 | + return $this->oneClickApply; |
|
| 217 | + } |
|
| 218 | 218 | |
| 219 | 219 | |
| 220 | 220 | /** |
@@ -222,29 +222,29 @@ discard block |
||
| 222 | 222 | * |
| 223 | 223 | * @return $this |
| 224 | 224 | */ |
| 225 | - public function setOneClickApply($oneClickApply) |
|
| 226 | - { |
|
| 227 | - $this->oneClickApply = (bool)$oneClickApply; |
|
| 228 | - |
|
| 229 | - return $this; |
|
| 230 | - } |
|
| 231 | - |
|
| 232 | - /** |
|
| 233 | - * @return array |
|
| 234 | - */ |
|
| 235 | - public function getOneClickApplyProfiles() |
|
| 236 | - { |
|
| 237 | - return $this->oneClickApplyProfiles; |
|
| 238 | - } |
|
| 239 | - |
|
| 240 | - /** |
|
| 241 | - * @param array $oneClickApplyProfiles |
|
| 242 | - * @return AtsMode |
|
| 243 | - */ |
|
| 244 | - public function setOneClickApplyProfiles(array $oneClickApplyProfiles) |
|
| 245 | - { |
|
| 246 | - $this->oneClickApplyProfiles = $oneClickApplyProfiles; |
|
| 247 | - |
|
| 248 | - return $this; |
|
| 249 | - } |
|
| 225 | + public function setOneClickApply($oneClickApply) |
|
| 226 | + { |
|
| 227 | + $this->oneClickApply = (bool)$oneClickApply; |
|
| 228 | + |
|
| 229 | + return $this; |
|
| 230 | + } |
|
| 231 | + |
|
| 232 | + /** |
|
| 233 | + * @return array |
|
| 234 | + */ |
|
| 235 | + public function getOneClickApplyProfiles() |
|
| 236 | + { |
|
| 237 | + return $this->oneClickApplyProfiles; |
|
| 238 | + } |
|
| 239 | + |
|
| 240 | + /** |
|
| 241 | + * @param array $oneClickApplyProfiles |
|
| 242 | + * @return AtsMode |
|
| 243 | + */ |
|
| 244 | + public function setOneClickApplyProfiles(array $oneClickApplyProfiles) |
|
| 245 | + { |
|
| 246 | + $this->oneClickApplyProfiles = $oneClickApplyProfiles; |
|
| 247 | + |
|
| 248 | + return $this; |
|
| 249 | + } |
|
| 250 | 250 | } |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | * @filesource |
| 6 | 6 | * @copyright https://yawik.org/COPYRIGHT.php |
| 7 | 7 | * @license MIT |
| 8 | - */ |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | namespace Jobs\Factory\Form\Hydrator; |
| 11 | 11 | |
@@ -60,11 +60,11 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | protected $viewHelper; |
| 62 | 62 | |
| 63 | - /** |
|
| 64 | - * @param ContainerInterface $container |
|
| 65 | - * |
|
| 66 | - * @return ApplyController |
|
| 67 | - */ |
|
| 63 | + /** |
|
| 64 | + * @param ContainerInterface $container |
|
| 65 | + * |
|
| 66 | + * @return ApplyController |
|
| 67 | + */ |
|
| 68 | 68 | static public function factory(ContainerInterface $container) |
| 69 | 69 | { |
| 70 | 70 | $ob = new self(); |
@@ -72,24 +72,24 @@ discard block |
||
| 72 | 72 | return $ob; |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | - public function setContainer( ContainerInterface $container ) |
|
| 76 | - { |
|
| 77 | - $this->config = $container->get('Config'); |
|
| 78 | - $this->imageCacheManager = $container->get('Organizations\ImageFileCache\Manager'); |
|
| 79 | - $this->validator = $container->get('ValidatorManager'); |
|
| 80 | - $this->repositories = $container->get('repositories'); |
|
| 81 | - $this->appEvents = $container->get('Applications/Events'); |
|
| 82 | - $this->viewHelper = $container->get('ViewHelperManager'); |
|
| 83 | - } |
|
| 84 | - |
|
| 85 | - |
|
| 86 | - public function attachDefaultListeners() |
|
| 87 | - { |
|
| 88 | - parent::attachDefaultListeners(); |
|
| 89 | - $events = $this->getEventManager(); |
|
| 90 | - $events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 10); |
|
| 91 | - return $this; |
|
| 92 | - } |
|
| 75 | + public function setContainer( ContainerInterface $container ) |
|
| 76 | + { |
|
| 77 | + $this->config = $container->get('Config'); |
|
| 78 | + $this->imageCacheManager = $container->get('Organizations\ImageFileCache\Manager'); |
|
| 79 | + $this->validator = $container->get('ValidatorManager'); |
|
| 80 | + $this->repositories = $container->get('repositories'); |
|
| 81 | + $this->appEvents = $container->get('Applications/Events'); |
|
| 82 | + $this->viewHelper = $container->get('ViewHelperManager'); |
|
| 83 | + } |
|
| 84 | + |
|
| 85 | + |
|
| 86 | + public function attachDefaultListeners() |
|
| 87 | + { |
|
| 88 | + parent::attachDefaultListeners(); |
|
| 89 | + $events = $this->getEventManager(); |
|
| 90 | + $events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 10); |
|
| 91 | + return $this; |
|
| 92 | + } |
|
| 93 | 93 | |
| 94 | 94 | public function preDispatch(MvcEvent $e) |
| 95 | 95 | { |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | ->getHybridAuth(); |
| 267 | 267 | /* @var $authProfile \Hybrid_User_Profile */ |
| 268 | 268 | $authProfile = $hybridAuth->authenticate($network) |
| 269 | - ->getUserProfile(); |
|
| 269 | + ->getUserProfile(); |
|
| 270 | 270 | |
| 271 | 271 | /* @var \Auth\Entity\SocialProfiles\AbstractProfile $profile */ |
| 272 | 272 | $profile = $this->plugin('Auth/SocialProfiles')->fetch($network); |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | } |
| 320 | 320 | |
| 321 | 321 | return $this->redirect() |
| 322 | - ->toRoute('lang/apply', ['applyId' => $job->getApplyId()], $urlOptions); |
|
| 322 | + ->toRoute('lang/apply', ['applyId' => $job->getApplyId()], $urlOptions); |
|
| 323 | 323 | } |
| 324 | 324 | |
| 325 | 325 | public function processPreviewAction() |
@@ -329,11 +329,11 @@ discard block |
||
| 329 | 329 | |
| 330 | 330 | public function processAction() |
| 331 | 331 | { |
| 332 | - $params = $this->params(); |
|
| 332 | + $params = $this->params(); |
|
| 333 | 333 | $formName = $params->fromQuery('form'); |
| 334 | 334 | $form = $this->formContainer->getForm($formName); |
| 335 | 335 | $postData = $form->getOption('use_post_array') ? $params->fromPost() : array(); |
| 336 | - //@TODO: [ZF3] option use_files_array is false by default |
|
| 336 | + //@TODO: [ZF3] option use_files_array is false by default |
|
| 337 | 337 | //$filesData = $form->getOption('use_files_array') ? $params->fromFiles() : array(); |
| 338 | 338 | $form->setData(array_merge($postData,$_FILES)); |
| 339 | 339 | |
@@ -363,9 +363,9 @@ discard block |
||
| 363 | 363 | |
| 364 | 364 | return new JsonModel( |
| 365 | 365 | array( |
| 366 | - 'valid' => $form->isValid(), |
|
| 367 | - 'content' => $content, |
|
| 368 | - 'isApplicationValid' => $this->checkApplication($application) |
|
| 366 | + 'valid' => $form->isValid(), |
|
| 367 | + 'content' => $content, |
|
| 368 | + 'isApplicationValid' => $this->checkApplication($application) |
|
| 369 | 369 | ) |
| 370 | 370 | ); |
| 371 | 371 | } |