Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/job-options' into develop
- Loading branch information
Showing
16 changed files
with
469 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
$options = array( | ||
|
||
/** | ||
* If not set, the email address of the default user is used | ||
* @see Jobs\Options\ModulesOptionFactory | ||
*/ | ||
'multipostingApprovalMail' => '', | ||
|
||
/** | ||
* If a target Uri is set, a rest Request is sent to this target in case | ||
* a job posting was accepted. | ||
*/ | ||
'multipostingTargetUri' => '', | ||
|
||
/** | ||
* default Logo, if a company has no logo. | ||
*/ | ||
'default_logo' => '/Jobs/images/yawik-small.jpg', | ||
|
||
/** | ||
* Maximum size in bytes of a company Logo | ||
*/ | ||
'companyLogoMaxSize' => 100000, | ||
|
||
/** | ||
* Allowed Mime-Types for company Logos | ||
*/ | ||
'companyLogoMimeType' => array("image") | ||
|
||
); | ||
|
||
return array('jobs_options' => $options); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
/** | ||
* YAWIK | ||
* | ||
* @filesource | ||
* @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) | ||
* @author cbleek | ||
* @license AGPLv3 | ||
*/ | ||
|
||
namespace Jobs\Factory; | ||
|
||
use Zend\ServiceManager\FactoryInterface; | ||
use Zend\ServiceManager\ServiceLocatorInterface; | ||
use Jobs\Options\ModuleOptions; | ||
|
||
/** | ||
* Class ModuleOptionsFactory | ||
* @package Jobs\Factory | ||
*/ | ||
class ModuleOptionsFactory implements FactoryInterface | ||
{ | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* @param ServiceLocatorInterface $serviceLocator | ||
* @return ModuleOptions | ||
*/ | ||
public function createService(ServiceLocatorInterface $serviceLocator) | ||
{ | ||
$config = $serviceLocator->get('Config'); | ||
|
||
if (isset($config['jobs_options']) && '' == trim($config['jobs_options']['multipostingApprovalMail'])){ | ||
$config['jobs_options']['multipostingApprovalMail'] = $config['Auth']['default_user']['email']; | ||
} | ||
|
||
return new ModuleOptions(isset($config['jobs_options']) ? $config['jobs_options'] : array()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.