@@ -97,9 +97,9 @@ |
||
| 97 | 97 | |
| 98 | 98 | $event = new AssertionEvent(null, $this); |
| 99 | 99 | $event->setAcl($acl) |
| 100 | - ->setRole($role) |
|
| 101 | - ->setResource($resource) |
|
| 102 | - ->setPrivilege($privilege); |
|
| 100 | + ->setRole($role) |
|
| 101 | + ->setResource($resource) |
|
| 102 | + ->setPrivilege($privilege); |
|
| 103 | 103 | |
| 104 | 104 | $events = $this->getEventManager(); |
| 105 | 105 | |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | ), |
| 56 | 56 | 'attributes' => [ |
| 57 | 57 | 'value' => '10', // default distance |
| 58 | - 'data-searchbox' => -1, // hide the search box |
|
| 58 | + 'data-searchbox' => -1, // hide the search box |
|
| 59 | 59 | 'data-allowclear' => 'false', // allow to clear a selected value |
| 60 | 60 | 'data-placeholder' => /*@translate*/ 'Distance', |
| 61 | 61 | ] |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | protected function editTemplateAction() |
| 81 | 81 | { |
| 82 | 82 | $id = $this->params('id'); |
| 83 | - $formIdentifier=$this->params()->fromQuery('form'); |
|
| 83 | + $formIdentifier = $this->params()->fromQuery('form'); |
|
| 84 | 84 | $job = $this->jobRepository->find($id); |
| 85 | 85 | |
| 86 | 86 | /** @var \Zend\Http\Request $request */ |
@@ -1,12 +1,12 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 7 | - * @license MIT |
|
| 8 | - * @author [email protected] |
|
| 9 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 7 | + * @license MIT |
|
| 8 | + * @author [email protected] |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace Jobs\Form; |
| 12 | 12 | |
@@ -43,13 +43,13 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | $this->add( |
| 45 | 45 | array( |
| 46 | - 'type' => 'Jobs\MultipostingSelect', |
|
| 47 | - 'property' => true, |
|
| 48 | - 'name' => 'portals', |
|
| 49 | - 'options' => array( |
|
| 50 | - 'label' => /*@translate*/ 'Portals', |
|
| 51 | - ), |
|
| 52 | - ) |
|
| 46 | + 'type' => 'Jobs\MultipostingSelect', |
|
| 47 | + 'property' => true, |
|
| 48 | + 'name' => 'portals', |
|
| 49 | + 'options' => array( |
|
| 50 | + 'label' => /*@translate*/ 'Portals', |
|
| 51 | + ), |
|
| 52 | + ) |
|
| 53 | 53 | ); |
| 54 | 54 | } |
| 55 | 55 | |
@@ -144,6 +144,6 @@ |
||
| 144 | 144 | $repositoryService->store($application); |
| 145 | 145 | unset($mail); |
| 146 | 146 | } |
| 147 | - return new JsonModel(array('ok' => true, )); |
|
| 147 | + return new JsonModel(array('ok' => true,)); |
|
| 148 | 148 | } |
| 149 | 149 | } |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | throw new \RuntimeException('Invalid application id.'); |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | - $action = 'process'; |
|
| 95 | + $action = 'process'; |
|
| 96 | 96 | |
| 97 | 97 | $routeMatch->setParam('action', $action); |
| 98 | 98 | } else { |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | { |
| 184 | 184 | $this->response->setStatusCode(410); |
| 185 | 185 | $model = new ViewModel( |
| 186 | - [ 'content' => /*@translate*/ 'Invalid apply id'] |
|
| 186 | + ['content' => /*@translate*/ 'Invalid apply id'] |
|
| 187 | 187 | ); |
| 188 | 188 | $model->setTemplate('applications/error/not-found'); |
| 189 | 189 | return $model; |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | } |
| 283 | 283 | |
| 284 | 284 | if ('sendmail' == $this->params()->fromQuery('do')) { |
| 285 | - $jobEntity = $application->job; |
|
| 285 | + $jobEntity = $application->job; |
|
| 286 | 286 | ; |
| 287 | 287 | $mailData = array( |
| 288 | 288 | 'application' => $application, |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 7 | - * @license MIT |
|
| 8 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 7 | + * @license MIT |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | /** Applications controller */ |
| 11 | 11 | namespace Applications\Controller; |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | $ackMail = $this->mailer( |
| 219 | 219 | 'Applications/Confirmation', |
| 220 | 220 | array('application' => $applicationEntity, |
| 221 | - 'body' => $ackBody, |
|
| 221 | + 'body' => $ackBody, |
|
| 222 | 222 | ) |
| 223 | 223 | ); |
| 224 | 224 | // Must be called after initializers in creation |
@@ -236,13 +236,13 @@ discard block |
||
| 236 | 236 | $wantCarbonCopy = (int) $paramsCC['carboncopy']; |
| 237 | 237 | if ($wantCarbonCopy) { |
| 238 | 238 | $mail = $this->mailer( |
| 239 | - 'Applications/CarbonCopy', |
|
| 240 | - array( |
|
| 239 | + 'Applications/CarbonCopy', |
|
| 240 | + array( |
|
| 241 | 241 | 'application' => $applicationEntity, |
| 242 | 242 | 'to' => $applicationEntity->contact->email, |
| 243 | - ), /*send*/ |
|
| 244 | - true |
|
| 245 | - ); |
|
| 243 | + ), /*send*/ |
|
| 244 | + true |
|
| 245 | + ); |
|
| 246 | 246 | } |
| 247 | 247 | } |
| 248 | 248 | } |
@@ -280,7 +280,7 @@ discard block |
||
| 280 | 280 | $params->set('by', 'me'); |
| 281 | 281 | } |
| 282 | 282 | |
| 283 | - //default sorting |
|
| 283 | + //default sorting |
|
| 284 | 284 | if (!isset($params['sort'])) { |
| 285 | 285 | $params['sort']="-date"; |
| 286 | 286 | } |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | $services = $this->getServiceLocator(); |
| 307 | 307 | $config = $services->get('Config'); |
| 308 | 308 | $applicationId = $this->getRequest() |
| 309 | - ->getQuery('id'); |
|
| 309 | + ->getQuery('id'); |
|
| 310 | 310 | $status = $this->params('status'); |
| 311 | 311 | $repositories = $services->get('repositories'); |
| 312 | 312 | $entityApplication = $repositories->get('Applications/Application')->find($applicationId); |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | |
| 338 | 338 | $mail = $this->mailer('Applications/CarbonCopy', $mailData, true); |
| 339 | 339 | $this->notification() |
| 340 | - ->success(/*@translate*/ 'Mail has been send'); |
|
| 340 | + ->success(/*@translate*/ 'Mail has been send'); |
|
| 341 | 341 | if ($status == 'company') { |
| 342 | 342 | $repositories->remove($entityApplication); |
| 343 | 343 | $this->notification()->info(/*@translate*/ 'Application data has been deleted'); |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | } |
| 84 | 84 | $statusElement->setValueOptions($statesForSelections); |
| 85 | 85 | |
| 86 | - $job = $params->job ? $jobRepository->find($params->job) : null; |
|
| 86 | + $job = $params->job ? $jobRepository->find($params->job) : null; |
|
| 87 | 87 | $paginator = $this->paginator('Applications'); |
| 88 | 88 | |
| 89 | 89 | if ($job) { |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | |
| 150 | 150 | |
| 151 | 151 | |
| 152 | - $format=$this->params()->fromQuery('format'); |
|
| 152 | + $format = $this->params()->fromQuery('format'); |
|
| 153 | 153 | |
| 154 | 154 | if ($application->isDraft()) { |
| 155 | 155 | $list = false; |
@@ -330,13 +330,13 @@ discard block |
||
| 330 | 330 | $key = 'mailRejectionText'; |
| 331 | 331 | break; |
| 332 | 332 | default: |
| 333 | - throw new \InvalidArgumentException('Unknown status value: ' .$status); |
|
| 333 | + throw new \InvalidArgumentException('Unknown status value: ' . $status); |
|
| 334 | 334 | } |
| 335 | - $mailText = $settings->$key ? $settings->$key : ''; |
|
| 335 | + $mailText = $settings->$key ? $settings->$key : ''; |
|
| 336 | 336 | $this->notification()->success($mailText); |
| 337 | 337 | $mail->setBody($mailText); |
| 338 | 338 | $mailText = $mail->getBodyText(); |
| 339 | - $mailSubject = sprintf( |
|
| 339 | + $mailSubject = sprintf( |
|
| 340 | 340 | $translator->translate('Your application dated %s'), |
| 341 | 341 | strftime('%x', $application->getDateCreated()->getTimestamp()) |
| 342 | 342 | ); |
@@ -374,7 +374,7 @@ discard block |
||
| 374 | 374 | |
| 375 | 375 | $this->acl($application, 'forward'); |
| 376 | 376 | |
| 377 | - $translator = $services->get('translator'); |
|
| 377 | + $translator = $services->get('translator'); |
|
| 378 | 378 | |
| 379 | 379 | if (!$emailAddress) { |
| 380 | 380 | throw new \InvalidArgumentException('An email address must be supplied.'); |
@@ -415,7 +415,7 @@ discard block |
||
| 415 | 415 | { |
| 416 | 416 | $id = $this->params('id'); |
| 417 | 417 | $services = $this->getServiceLocator(); |
| 418 | - $repositories= $services->get('repositories'); |
|
| 418 | + $repositories = $services->get('repositories'); |
|
| 419 | 419 | $repository = $repositories->get('Applications/Application'); |
| 420 | 420 | $application = $repository->find($id); |
| 421 | 421 | |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 7 | - * @license MIT |
|
| 8 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 7 | + * @license MIT |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | namespace Applications\Form; |
| 11 | 11 | |
@@ -40,14 +40,14 @@ discard block |
||
| 40 | 40 | public function init() |
| 41 | 41 | { |
| 42 | 42 | $this->setName('emails') |
| 43 | - ->setLabel(/* @translate */ 'E-Mail Notifications'); |
|
| 44 | - //->setHydrator(new \Core\Model\Hydrator\ModelHydrator()); |
|
| 43 | + ->setLabel(/* @translate */ 'E-Mail Notifications'); |
|
| 44 | + //->setHydrator(new \Core\Model\Hydrator\ModelHydrator()); |
|
| 45 | 45 | |
| 46 | 46 | $this->add( |
| 47 | 47 | array('type' => 'Zend\Form\Element\Checkbox', |
| 48 | 48 | 'name' => 'mailAccess', |
| 49 | 49 | 'options' => array('label' => /* @translate */ 'receive E-Mail alert', |
| 50 | - 'long_label' => /* @translate */ 'if checked, you\'ll be informed by mail about new applications.'), |
|
| 50 | + 'long_label' => /* @translate */ 'if checked, you\'ll be informed by mail about new applications.'), |
|
| 51 | 51 | ) |
| 52 | 52 | ); |
| 53 | 53 | $this->add( |
@@ -61,13 +61,13 @@ discard block |
||
| 61 | 61 | array('type' => 'Zend\Form\Element\Checkbox', |
| 62 | 62 | 'name' => 'autoConfirmMail', |
| 63 | 63 | 'options' => array('label' => /* @translate */ 'confirm application immidiatly after submit', |
| 64 | - 'long_label' => /* @translate */ 'if checked, an application is immediatly confirmed. If unchecked confirmation is the duty of the recruiter.'), |
|
| 64 | + 'long_label' => /* @translate */ 'if checked, an application is immediatly confirmed. If unchecked confirmation is the duty of the recruiter.'), |
|
| 65 | 65 | ) |
| 66 | 66 | ); |
| 67 | 67 | $this->add( |
| 68 | 68 | array('type' => 'Zend\Form\Element\Textarea', |
| 69 | 69 | 'name' => 'mailConfirmationText', |
| 70 | - 'options' => array('label' => /* @translate */ 'Confirmation mail text', |
|
| 70 | + 'options' => array('label' => /* @translate */ 'Confirmation mail text', |
|
| 71 | 71 | 'description' => /* @translate */ 'default text of the acknowledgment of receipt mail to the applicant. The following variables can be used:<br><ul><li>##anrede_formell## = salutation. Includes gender, firstname and lastname.<li>##anrede_informell## = salutation. Includes fistname and lastname.</li><li>##job_title## = title of the jobs</li><li>##name## = name of the applicant.</li><li>##date## = date of recipt of the application.</li></ul>' )) |
| 72 | 72 | ); |
| 73 | 73 | |
@@ -83,15 +83,15 @@ discard block |
||
| 83 | 83 | array('type' => 'Zend\Form\Element\Textarea', |
| 84 | 84 | 'name' => 'mailRejectionText', |
| 85 | 85 | 'options' => array('label' => /* @translate */ 'Rejection mail text', |
| 86 | - 'description' => /* @translate */ 'default text of the refusal of an application to the applicant. You can use all variables of the acknowledgment of receipt mail.')) |
|
| 86 | + 'description' => /* @translate */ 'default text of the refusal of an application to the applicant. You can use all variables of the acknowledgment of receipt mail.')) |
|
| 87 | 87 | ); |
| 88 | 88 | |
| 89 | 89 | $this->add( |
| 90 | 90 | array('type' => 'Zend\Form\Element\Checkbox', |
| 91 | 91 | 'name' => 'mailBCC', |
| 92 | 92 | 'options' => array('label' => /* @translate */ 'get blind carbon copy of all own mails', |
| 93 | - 'long_label' => /* @translate */ 'if checked, you\'ll get a copy of all mails you send.', |
|
| 94 | - 'value_options' => array(0, 1, true, false))) |
|
| 93 | + 'long_label' => /* @translate */ 'if checked, you\'ll get a copy of all mails you send.', |
|
| 94 | + 'value_options' => array(0, 1, true, false))) |
|
| 95 | 95 | ); |
| 96 | 96 | |
| 97 | 97 | $this->add( |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | array('type' => 'Zend\Form\Element\Textarea', |
| 69 | 69 | 'name' => 'mailConfirmationText', |
| 70 | 70 | 'options' => array('label' => /* @translate */ 'Confirmation mail text', |
| 71 | - 'description' => /* @translate */ 'default text of the acknowledgment of receipt mail to the applicant. The following variables can be used:<br><ul><li>##anrede_formell## = salutation. Includes gender, firstname and lastname.<li>##anrede_informell## = salutation. Includes fistname and lastname.</li><li>##job_title## = title of the jobs</li><li>##name## = name of the applicant.</li><li>##date## = date of recipt of the application.</li></ul>' )) |
|
| 71 | + 'description' => /* @translate */ 'default text of the acknowledgment of receipt mail to the applicant. The following variables can be used:<br><ul><li>##anrede_formell## = salutation. Includes gender, firstname and lastname.<li>##anrede_informell## = salutation. Includes fistname and lastname.</li><li>##job_title## = title of the jobs</li><li>##name## = name of the applicant.</li><li>##date## = date of recipt of the application.</li></ul>')) |
|
| 72 | 72 | ); |
| 73 | 73 | |
| 74 | 74 | $this->add( |