Skip to content
Snippets Groups Projects
Commit 959b52cd authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Adding area & function to model

parent b518f8b9
No related branches found
No related tags found
No related merge requests found
<?php
namespace SGalinski\SgJobs\Domain\Model;
/***************************************************************
......@@ -47,6 +48,16 @@ class Job extends AbstractEntity {
*/
protected $qualification = '';
/**
* @var string $area
*/
protected $area = '';
/**
* @var string $function
*/
protected $function = '';
/**
* @var int $startDate
*/
......@@ -164,4 +175,32 @@ class Job extends AbstractEntity {
public function setContact(ObjectStorage $contact) {
$this->contact = $contact;
}
/**
* @return string
*/
public function getArea(): string {
return $this->area;
}
/**
* @param string $area
*/
public function setArea(string $area) {
$this->area = $area;
}
/**
* @return string
*/
public function getFunction(): string {
return $this->function;
}
/**
* @param string $function
*/
public function setFunction(string $function) {
$this->function = $function;
}
}
......@@ -8,7 +8,7 @@ return [
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'dividers2tabs' => TRUE,
'searchFields' => 'title, start_date, company, contact',
'searchFields' => 'title, start_date, company, contact, area, function',
'versioningWS' => 2,
'versioning_followPages' => TRUE,
'origUid' => 't3_origuid',
......@@ -26,12 +26,12 @@ return [
'Resources/Public/Icons/tx_sgjobs_domain_model_job.svg'
],
'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, pid, title, start_date,
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, pid, title, area, function, start_date,
company, task, qualification, description, contact',
],
'types' => [
'1' => [
'showitem' => '--palette--;;sysLanguageAndHidden,--palette--;;pallete_title_start,
'showitem' => '--palette--;;sysLanguageAndHidden,--palette--;;pallete_title_start,,--palette--;;pallete_area_function,
--palette--;;pallete_location_contact, description, --div--; LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tca.qualification_tab, task, qualification, div;;richtext[*]:rte_transform[mode=ts],
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime',
],
......@@ -42,188 +42,207 @@ return [
'canNotCollapse' => 1,
],
'pallete_title_start' => ['showitem' => 'title, start_date', 'canNotCollapse' => 1],
'pallete_area_function' => ['showitem' => 'area, function', 'canNotCollapse' => 1],
'pallete_location_contact' => ['showitem' => 'company, contact', 'canNotCollapse' => 1]
],
'columns' => [
'sys_language_uid' => [
'exclude' => 1,
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.language',
'config' => [
'type' => 'select',
'special' => 'languages',
'sys_language_uid' => [
'exclude' => 1,
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.language',
'config' => [
'type' => 'select',
'special' => 'languages',
],
],
],
'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1,
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.l18n_parent',
'config' => [
'type' => 'select',
'items' => [
['', 0],
'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1,
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.l18n_parent',
'config' => [
'type' => 'select',
'items' => [
['', 0],
],
'foreign_table' => 'tx_sgjobs_domain_model_job',
'foreign_table_where' => 'AND tx_sgjobs_domain_model_job.pid=###CURRENT_PID### AND tx_sgjobs_domain_model_job.sys_language_uid IN (-1,0)',
],
'foreign_table' => 'tx_sgjobs_domain_model_job',
'foreign_table_where' => 'AND tx_sgjobs_domain_model_job.pid=###CURRENT_PID### AND tx_sgjobs_domain_model_job.sys_language_uid IN (-1,0)',
],
],
'l10n_diffsource' => [
'config' => [
'type' => 'passthrough',
'l10n_diffsource' => [
'config' => [
'type' => 'passthrough',
],
],
],
't3ver_label' => [
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.versionLabel',
'config' => [
'type' => 'input',
'size' => 30,
'max' => 255,
]
],
'pid' => [
'exclude' => 0,
'label' => 'PID',
'config' => [
'type' => 'none',
]
],
'hidden' => [
'exclude' => 1,
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.hidden',
'config' => [
'type' => 'check',
't3ver_label' => [
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.versionLabel',
'config' => [
'type' => 'input',
'size' => 30,
'max' => 255,
]
],
],
'starttime' => [
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.starttime',
'config' => [
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'datetime',
'checkbox' => 0,
'default' => 0,
'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
'pid' => [
'exclude' => 0,
'label' => 'PID',
'config' => [
'type' => 'none',
]
],
'hidden' => [
'exclude' => 1,
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.hidden',
'config' => [
'type' => 'check',
],
],
],
'endtime' => [
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.endtime',
'config' => [
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'datetime',
'checkbox' => 0,
'default' => 0,
'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
'starttime' => [
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.starttime',
'config' => [
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'datetime',
'checkbox' => 0,
'default' => 0,
'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
],
],
],
],
'title' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.title',
'config' => [
'type' => 'input',
'size' => 30,
'eval' => 'trim, required'
'endtime' => [
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.endtime',
'config' => [
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'datetime',
'checkbox' => 0,
'default' => 0,
'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
],
],
],
],
'start_date' => [
'exclude' => 1,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.start_date',
'config' => [
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'date',
'checkbox' => 0,
'range' => [
'lower' => mktime(date('m'), date('d'), date('Y'))
'title' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.title',
'config' => [
'type' => 'input',
'size' => 30,
'eval' => 'trim, required'
],
],
],
'task' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.task',
'config' => [
'type' => 'text',
'cols' => 40,
'rows' => 10,
'eval' => 'trim, required'
],
'defaultExtras' => 'richtext[]'
],
'qualification' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.qualification',
'config' => [
'type' => 'text',
'cols' => 40,
'rows' => 10,
'eval' => 'trim, required'
],
'defaultExtras' => 'richtext[]'
],
'description' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.description',
'config' => [
'type' => 'text',
'cols' => 40,
'rows' => 10,
'eval' => 'trim, required'
],
'defaultExtras' => 'richtext[]'
],
'company' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.location',
'config' => [
'type' => 'select',
'eval' => 'required',
'renderType' => 'selectSingle',
'internal_type' => 'db',
'foreign_table' => 'tx_sgjobs_domain_model_location',
'size' => 1,
'maxitems' => 1,
'multiple' => 0,
'fieldControl' => [
'editPopup' => [
'disabled' => FALSE,
],
'addRecord' => [
'disabled' => FALSE,
]
'area' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.area',
'config' => [
'type' => 'input',
'size' => 30,
'eval' => 'trim'
],
]
],
'contact' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.contact',
'config' => [
'type' => 'select',
'eval' => 'required',
'renderType' => 'selectSingle',
'internal_type' => 'db',
'foreign_table' => 'tx_sgjobs_domain_model_contact',
'size' => 1,
'maxitems' => 1,
'multiple' => 0,
'fieldControl' => [
'editPopup' => [
'disabled' => FALSE,
],
'function' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.function',
'config' => [
'type' => 'input',
'size' => 30,
'eval' => 'trim'
],
],
'start_date' => [
'exclude' => 1,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.start_date',
'config' => [
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'date',
'checkbox' => 0,
'range' => [
'lower' => mktime(date('m'), date('d'), date('Y'))
],
'addRecord' => [
'disabled' => FALSE,
]
],
],
'task' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.task',
'config' => [
'type' => 'text',
'cols' => 40,
'rows' => 10,
'eval' => 'trim, required'
],
'defaultExtras' => 'richtext[]'
],
'qualification' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.qualification',
'config' => [
'type' => 'text',
'cols' => 40,
'rows' => 10,
'eval' => 'trim, required'
],
'defaultExtras' => 'richtext[]'
],
'description' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.description',
'config' => [
'type' => 'text',
'cols' => 40,
'rows' => 10,
'eval' => 'trim, required'
],
'defaultExtras' => 'richtext[]'
],
'company' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.location',
'config' => [
'type' => 'select',
'eval' => 'required',
'renderType' => 'selectSingle',
'internal_type' => 'db',
'foreign_table' => 'tx_sgjobs_domain_model_location',
'size' => 1,
'maxitems' => 1,
'multiple' => 0,
'fieldControl' => [
'editPopup' => [
'disabled' => FALSE,
],
'addRecord' => [
'disabled' => FALSE,
]
],
]
],
'contact' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.contact',
'config' => [
'type' => 'select',
'eval' => 'required',
'renderType' => 'selectSingle',
'internal_type' => 'db',
'foreign_table' => 'tx_sgjobs_domain_model_contact',
'size' => 1,
'maxitems' => 1,
'multiple' => 0,
'fieldControl' => [
'editPopup' => [
'disabled' => FALSE,
],
'addRecord' => [
'disabled' => FALSE,
]
],
]
]
]
],
],
];
\ No newline at end of file
......@@ -77,6 +77,10 @@
<source>Job offer</source>
<target>Stellenanzeige</target>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.area" approved="yes">
<source>Area</source>
<target>Bereich</target>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.company" approved="yes">
<source>Company</source>
<target>Unternehmen</target>
......@@ -89,6 +93,10 @@
<source>Job description</source>
<target>Beschreibung</target>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.function" approved="yes">
<source>Function</source>
<target>Funktion</target>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.location" approved="yes">
<source>Location</source>
<target>Arbeitsort</target>
......
......@@ -60,6 +60,9 @@
<trans-unit id="tx_sgjobs_domain_model_job">
<source>Job offer</source>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.area">
<source>Area</source>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.company">
<source>Company</source>
</trans-unit>
......@@ -69,6 +72,9 @@
<trans-unit id="tx_sgjobs_domain_model_job.description">
<source>Job description</source>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.function">
<source>Function</source>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.location">
<source>Location</source>
</trans-unit>
......
......@@ -9,6 +9,8 @@ CREATE TABLE tx_sgjobs_domain_model_job (
start_date int(11) unsigned DEFAULT '0' NOT NULL,
company text DEFAULT '' NOT NULL,
description text DEFAULT '' NOT NULL,
area text DEFAULT '' NOT NULL,
function text DEFAULT '' NOT NULL,
contact int(11) unsigned DEFAULT '0' NOT NULL,
-- TYPO3 fields
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment