diff --git a/Classes/Domain/Model/Job.php b/Classes/Domain/Model/Job.php index ffa1a25..b4bed5d 100644 --- a/Classes/Domain/Model/Job.php +++ b/Classes/Domain/Model/Job.php @@ -40,6 +40,14 @@ class Job extends AbstractEntity protected string $sector; + protected string $requiredDegree; + + protected string $contractualRelationship; + + protected int $alumniRecommend = 0; + + protected int $internationalsWelcome = 0; + /** * employmentType * @@ -132,6 +140,46 @@ public function setSector(string $sector): void $this->sector = $sector; } + public function getRequiredDegree(): string + { + return $this->requiredDegree; + } + + public function setRequiredDegree(string $requiredDegree): void + { + $this->requiredDegree = $requiredDegree; + } + + public function getContractualRelationship(): string + { + return $this->contractualRelationship; + } + + public function setContractualRelationship(string $contractualRelationship): void + { + $this->contractualRelationship = $contractualRelationship; + } + + public function getAlumniRecommend(): int + { + return $this->alumniRecommend; + } + + public function setAlumniRecommend(int $alumniRecommend): void + { + $this->alumniRecommend = $alumniRecommend; + } + + public function getInternationalsWelcome(): int + { + return $this->internationalsWelcome; + } + + public function setInternationalsWelcome(int $internationalsWelcome): void + { + $this->internationalsWelcome = $internationalsWelcome; + } + public function getWorkLocation(): string { return $this->workLocation; diff --git a/Configuration/TCA/tx_academicjobs_domain_model_job.php b/Configuration/TCA/tx_academicjobs_domain_model_job.php index cdb653c..b94515f 100644 --- a/Configuration/TCA/tx_academicjobs_domain_model_job.php +++ b/Configuration/TCA/tx_academicjobs_domain_model_job.php @@ -229,6 +229,42 @@ 'default' => '', ], ], + 'required_degree' => [ + 'exclude' => true, + 'label' => 'LLL:EXT:academic_jobs/Resources/Private/Language/locallang.xlf:tx_academicjobs_domain_model_job.required_degree', + 'config' => [ + 'type' => 'input', + 'size' => 30, + 'eval' => 'trim', + 'default' => '', + ], + ], + 'contractual_relationship' => [ + 'exclude' => true, + 'label' => 'LLL:EXT:academic_jobs/Resources/Private/Language/locallang.xlf:tx_academicjobs_domain_model_job.contractual_relationship', + 'config' => [ + 'type' => 'input', + 'size' => 30, + 'eval' => 'trim', + 'default' => '', + ], + ], + 'alumni_recommend' => [ + 'exclude' => true, + 'label' => 'LLL:EXT:academic_jobs/Resources/Private/Language/locallang.xlf:tx_academicjobs_domain_model_job.alumni_recommend', + 'config' => [ + 'type' => 'check', + 'default' => 0, + ], + ], + 'internationals_welcome' => [ + 'exclude' => true, + 'label' => 'LLL:EXT:academic_jobs/Resources/Private/Language/locallang.xlf:tx_academicjobs_domain_model_job.internationals_welcome', + 'config' => [ + 'type' => 'check', + 'default' => 0, + ], + ], 'employment_type' => [ 'exclude' => true, 'label' => 'LLL:EXT:academic_jobs/Resources/Private/Language/locallang.xlf:tx_academicjobs_domain_model_job.employment_type', @@ -330,6 +366,12 @@ company_name, sector, --linebreak--, + required_degree, + contractual_relationship, + --linebreak--, + alumni_recommend, + internationals_welcome, + --linebreak--, contact, ', ], diff --git a/Resources/Private/Language/de.locallang.xlf b/Resources/Private/Language/de.locallang.xlf index 8bc2c45..3982181 100644 --- a/Resources/Private/Language/de.locallang.xlf +++ b/Resources/Private/Language/de.locallang.xlf @@ -59,7 +59,22 @@ Sector Branche Beschreibung - + + Required degree + Benötigter Abschluss + + + Contractual relationship + Vertragsverhältnis + + + Alumni recommends + Alumni empfiehlt + + + Internationals welcome + Internationals willkommen + Employment Type Art des Stellenangebots @@ -285,6 +300,22 @@ Industry Branche + + Required degree + Benötigter Abschluss + + + Contractual relationship + Vertragsverhältnis + + + Alumni recommends: + Alumni empfiehlt: + + + Internationals welcome: + Internationals willkommen: + Location Ort diff --git a/Resources/Private/Language/locallang.xlf b/Resources/Private/Language/locallang.xlf index 9f22621..423ddc2 100644 --- a/Resources/Private/Language/locallang.xlf +++ b/Resources/Private/Language/locallang.xlf @@ -46,6 +46,18 @@ Sector + + Required degree + + + Contractual relationship + + + Alumni recommends + + + Internationals welcome + Employment Type @@ -218,6 +230,18 @@ Industry + + Required degree + + + Contractual relationship + + + Alumni recommends: + + + Internationals welcome: + Location diff --git a/ext_tables.sql b/ext_tables.sql index 9bb37f6..7880f46 100644 --- a/ext_tables.sql +++ b/ext_tables.sql @@ -5,6 +5,10 @@ CREATE TABLE tx_academicjobs_domain_model_job ( image int(11) unsigned NOT NULL DEFAULT '0', company_name text NOT NULL DEFAULT '', sector text NOT NULL DEFAULT '', + required_degree text NOT NULL DEFAULT '', + contractual_relationship text NOT NULL DEFAULT '', + alumni_recommend tinyint(1) unsigned DEFAULT '0' NOT NULL, + internationals_welcome tinyint(1) unsigned DEFAULT '0' NOT NULL, employment_type int(11) DEFAULT '0' NOT NULL, work_location varchar(255) NOT NULL DEFAULT '', link varchar(255) NOT NULL DEFAULT '',