first commit
This commit is contained in:
commit
e81864e683
2984 files changed
+267797
No files matched your search
@@ -0,0 +1,186 @@
|
||||
<?php
|
||||
|
||||
if (!isset($GLOBALS['TCA']['fe_users']['ctrl']['type'])) {
|
||||
if (file_exists($GLOBALS['TCA']['fe_users']['ctrl']['dynamicConfigFile'])) {
|
||||
require_once($GLOBALS['TCA']['fe_users']['ctrl']['dynamicConfigFile']);
|
||||
}
|
||||
// no type field defined, so we define it here. This will only happen the first time the extension is installed!!
|
||||
$GLOBALS['TCA']['fe_users']['ctrl']['type'] = 'tx_extbase_type';
|
||||
|
||||
$tempColumnstx_zuladungsliste_fe_users = array();
|
||||
$tempColumnstx_zuladungsliste_fe_users[$GLOBALS['TCA']['fe_users']['ctrl']['label']] = 'name';
|
||||
$tempColumnstx_zuladungsliste_fe_users[$GLOBALS['TCA']['fe_users']['ctrl']['type']] = array(
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:zuladungsliste/Resources/Private/Language/locallang_db.xlf:tx_zuladungsliste.tx_extbase_type',
|
||||
'config' => array(
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'items' => array(
|
||||
array('Architekten','Tx_Zuladungsliste_Architekten')
|
||||
),
|
||||
'default' => 'Tx_Zuladungsliste_Architekten',
|
||||
'size' => 1,
|
||||
'maxitems' => 1,
|
||||
)
|
||||
);
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('fe_users', $tempColumnstx_zuladungsliste_fe_users, 1);
|
||||
}
|
||||
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
|
||||
'fe_users',
|
||||
$GLOBALS['TCA']['fe_users']['ctrl']['type'],
|
||||
'',
|
||||
'after:' . $GLOBALS['TCA']['fe_users']['ctrl']['label']
|
||||
);
|
||||
|
||||
$GLOBALS['TCA']['fe_users']['ctrl']['label_userFunc'] = 'HermannTelser\\Zuladungsliste\\Backend\\Labels->loadArchitekten';
|
||||
$GLOBALS['TCA']['fe_users']['feInterface']['fe_admin_fieldList'] .= ',kammermitgliedsnummer';
|
||||
|
||||
$tmp_zuladungsliste_columns = array(
|
||||
'kammermitgliedsnummer' => array(
|
||||
'exclude' => 0,
|
||||
'label' => 'Kammer Mitgliedsnummer',
|
||||
'config' => array(
|
||||
'type' => 'input',
|
||||
'size' => 10,
|
||||
'eval' => 'unique'
|
||||
)
|
||||
),
|
||||
'inliste' => array(
|
||||
'exclude' => 0,
|
||||
'label' => 'In Zuladungsliste',
|
||||
'config' => array(
|
||||
'type' => 'check',
|
||||
'default' => 0
|
||||
)
|
||||
),
|
||||
'vereidigung' => array(
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:zuladungsliste/Resources/Private/Language/locallang_db.xlf:fe_users.vereidigung',
|
||||
'config' => array(
|
||||
'dbType' => 'date',
|
||||
'renderType' => 'inputDateTime',
|
||||
'type' => 'input',
|
||||
'size' => 10,
|
||||
'eval' => 'date',
|
||||
'checkbox' => 0,
|
||||
'default' => '0000-00-00'
|
||||
),
|
||||
),
|
||||
'frauenfoerderpunkt' => array(
|
||||
'exclude' => 0,
|
||||
'label' => 'Frauenförderpunkt',
|
||||
'config' => array(
|
||||
'type' => 'check',
|
||||
'default' => 0
|
||||
)
|
||||
),
|
||||
'solidaritaetserklaerung' => array(
|
||||
'exclude' => 0,
|
||||
'label' => 'Solidaritätserklärung',
|
||||
'config' => array(
|
||||
'type' => 'check',
|
||||
'default' => 0
|
||||
)
|
||||
),
|
||||
'kontoaufloesung_active' => array(
|
||||
'exclude' => 0,
|
||||
'label' => 'Kontoauflösung (gültig nur mit Stichtag)',
|
||||
'config' => array(
|
||||
'dbType' => 'date',
|
||||
'renderType' => 'inputDateTime',
|
||||
'type' => 'input',
|
||||
'size' => 10,
|
||||
'eval' => 'date',
|
||||
'checkbox' => 1
|
||||
),
|
||||
),
|
||||
'kontoaufloesung_begruendung' => [
|
||||
'label' => 'Begründung der Auslistung, z.B.: Pension, Abmeldung, Zusammenlegung..)',
|
||||
'config' => array(
|
||||
'type' => 'text'
|
||||
),
|
||||
],
|
||||
'extrasperrung' => array(
|
||||
'exclude' => 0,
|
||||
'label' => 'Sperrungen',
|
||||
'config' => array(
|
||||
'type' => 'inline',
|
||||
'foreign_table' => 'tx_zuladungsliste_extrasperrung_user_mm',
|
||||
'foreign_field' => 'uid_user',
|
||||
'foreign_label' => 'uid_extrasperrung',
|
||||
),
|
||||
),
|
||||
'wettbewerbe' => array(
|
||||
'exclude' => 0,
|
||||
'label' => 'Wettbewerbe',
|
||||
'config' => array(
|
||||
'type' => 'inline',
|
||||
'foreign_table' => 'tx_zuladungsliste_wettbewerbe_architekten_mm',
|
||||
'foreign_field' => 'uid_user',
|
||||
'foreign_label' => 'uid_wettbewerbe',
|
||||
'appearance' => array(
|
||||
'expandSingle' => 1,
|
||||
'newRecordLinkAddTitle' => 0,
|
||||
'levelLinksPosition' => 'both',
|
||||
),
|
||||
),
|
||||
),
|
||||
'kammernid' => array(
|
||||
'exclude' => 0,
|
||||
'label' => 'Kammer Zuordnung',
|
||||
'config' => array(
|
||||
'type' => 'select',
|
||||
'size' => 1,
|
||||
'renderType' => 'selectSingle',
|
||||
'items' => array(
|
||||
array(' --- Bitte wählen --- ',0)
|
||||
),
|
||||
'foreign_table' => 'tx_zuladungsliste_domain_model_kammern',
|
||||
)
|
||||
),
|
||||
'kontoaufloesung' => array(
|
||||
'exclude' => 0,
|
||||
'label' => 'Punkte Verteilung (optional)',
|
||||
'config' => array(
|
||||
'type' => 'inline',
|
||||
'foreign_table' => 'tx_zuladungsliste_konto_aufloesung_mm',
|
||||
'foreign_field' => 'uid_geber',
|
||||
'foreign_label' => 'uid_empfaenger',
|
||||
),
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('fe_users', $tmp_zuladungsliste_columns, true);
|
||||
|
||||
|
||||
/* inherit and extend the show items from the parent class */
|
||||
|
||||
// debug($GLOBALS['TCA']['fe_users']['types']['Tx_Zuladungsliste_Architekten']);
|
||||
|
||||
// if (isset($GLOBALS['TCA']['fe_users']['types']['0']['showitem'])) {
|
||||
// $GLOBALS['TCA']['fe_users']['types']['Tx_Zuladungsliste_Architekten']['showitem'] = $GLOBALS['TCA']['fe_users']['types']['0']['showitem'];
|
||||
// } elseif (is_array($GLOBALS['TCA']['fe_users']['types'])) {
|
||||
// // use first entry in types array
|
||||
// $fe_users_type_definition = reset($GLOBALS['TCA']['fe_users']['types']);
|
||||
// $GLOBALS['TCA']['fe_users']['types']['Tx_Zuladungsliste_Architekten']['showitem'] = $fe_users_type_definition['showitem'];
|
||||
// } else {
|
||||
// $GLOBALS['TCA']['fe_users']['types']['Tx_Zuladungsliste_Architekten']['showitem'] = '';
|
||||
// }
|
||||
|
||||
|
||||
$GLOBALS['TCA']['fe_users']['types']['Tx_Zuladungsliste_Architekten']['showitem'] = '--div--;Allgemein,username,password,usergroup';
|
||||
$GLOBALS['TCA']['fe_users']['types']['Tx_Zuladungsliste_Architekten']['showitem'] .= ',--div--;Persönliche Daten,company,title,gender,first_name,last_name,date_of_birth,address,zip,city,static_info_country,telephone,email,comments';
|
||||
$GLOBALS['TCA']['fe_users']['types']['Tx_Zuladungsliste_Architekten']['showitem'] .= ',--div--;Hinweise,description';
|
||||
$GLOBALS['TCA']['fe_users']['types']['Tx_Zuladungsliste_Architekten']['showitem'] .= ',--div--;Zuladungsliste,kammermitgliedsnummer, kammernid, vereidigung, geburtsdatum, frauenfoerderpunkt, solidaritaetserklaerung';
|
||||
$GLOBALS['TCA']['fe_users']['types']['Tx_Zuladungsliste_Architekten']['showitem'] .= ',--div--;Wettbewerbe,wettbewerbe';
|
||||
$GLOBALS['TCA']['fe_users']['types']['Tx_Zuladungsliste_Architekten']['showitem'] .= ',--div--;Besondere Sperrungen,extrasperrung';
|
||||
$GLOBALS['TCA']['fe_users']['types']['Tx_Zuladungsliste_Architekten']['showitem'] .= ',--div--;Konto Auflösung,kontoaufloesung_active,kontoaufloesung_begruendung,kontoaufloesung';
|
||||
|
||||
$GLOBALS['TCA']['fe_users']['columns'][$GLOBALS['TCA']['fe_users']['ctrl']['type']]['config']['items'][] = array('LLL:EXT:zuladungsliste/Resources/Private/Language/locallang_db.xlf:fe_users.tx_extbase_type.Tx_Zuladungsliste_Architekten','Tx_Zuladungsliste_Architekten');
|
||||
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
|
||||
'Zuladungsliste',
|
||||
'EXT:/Resources/Private/Language/locallang_csh_.xlf'
|
||||
);
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3_MODE') || die();
|
||||
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('zuladungsliste', 'Configuration/TypoScript', 'Zuladungsliste ZT Kammer');
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3_MODE') or die();
|
||||
|
||||
/***************
|
||||
* Plugin
|
||||
*/
|
||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
||||
'HermannTelser.Zuladungsliste',
|
||||
'Pi1',
|
||||
'ZT Wettbewerbszuladungsliste Administration',
|
||||
'EXT:zuladungsliste/Resources/Public/Icons/Extension.png'
|
||||
);
|
||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
||||
'HermannTelser.Zuladungsliste',
|
||||
'Pi2',
|
||||
'ZT Wettbewerbszuladungsliste Teilnehmer',
|
||||
'EXT:zuladungsliste/Resources/Public/Icons/Extension.png'
|
||||
);
|
||||
|
||||
// $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['zuladungsliste_pi1'] = 'recursive,select_key,pages,starttime,endtime';
|
||||
|
||||
// \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToInsertRecords('tx_zuladungsliste_domain_model_wettbewerbe');
|
||||
|
||||
// foreach (['crdate', 'tstamp','starttime','endtime'] as $fakeField) {
|
||||
// if (!isset($GLOBALS['TCA']['tt_content']['columns'][$fakeField])) {
|
||||
// $GLOBALS['TCA']['tt_content']['columns'][$fakeField] = [
|
||||
// 'label' => $fakeField,
|
||||
// 'config' => [
|
||||
// 'type' => 'passthrough',
|
||||
// ]
|
||||
// ];
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
// $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['zuladungsliste_pi1'] = 'pi_flexform';
|
||||
// \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
|
||||
// 'zuladungsliste_pi1',
|
||||
// 'FILE:EXT:zuladungsliste/Configuration/FlexForms/flexform_zuladungsliste.xml'
|
||||
// );
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3_MODE') || die();
|
||||
|
||||
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
|
||||
'tx_zuladungsliste_domain_model_extrasperrung',
|
||||
'EXT:zuladungsliste/Resources/Private/Language/locallang_csh_tx_zuladungsliste_domain_model_extrasperrung.xlf'
|
||||
);
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_zuladungsliste_domain_model_extrasperrung');
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3_MODE') || die();
|
||||
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
|
||||
'tx_zuladungsliste_domain_model_kammern',
|
||||
'EXT:zuladungsliste/Resources/Private/Language/locallang_csh_tx_zuladungsliste_domain_model_kammern.xlf'
|
||||
);
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_zuladungsliste_domain_model_kammern');
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3_MODE') || die();
|
||||
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
|
||||
'tx_zuladungsliste_domain_model_kriterien',
|
||||
'EXT:zuladungsliste/Resources/Private/Language/locallang_csh_tx_zuladungsliste_domain_model_kriterien.xlf'
|
||||
);
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_zuladungsliste_domain_model_kriterien');
|
||||
|
||||
$GLOBALS['TCA']['tx_zuladungsliste_domain_model_kriterien']['ctrl']['label_userFunc'] = 'HermannTelser\\Zuladungsliste\\Backend\\Labels->loadKriterien';
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3_MODE') || die();
|
||||
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
|
||||
'tx_zuladungsliste_domain_model_preisart',
|
||||
'EXT:zuladungsliste/Resources/Private/Language/locallang_csh_tx_zuladungsliste_domain_model_preisart.xlf'
|
||||
);
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_zuladungsliste_domain_model_preisart');
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3_MODE') || die();
|
||||
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
|
||||
'tx_zuladungsliste_domain_model_punkte',
|
||||
'EXT:zuladungsliste/Resources/Private/Language/locallang_csh_tx_zuladungsliste_domain_model_punkte.xlf'
|
||||
);
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_zuladungsliste_domain_model_punkte');
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3_MODE') || die();
|
||||
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
|
||||
'tx_zuladungsliste_domain_model_sektionstage',
|
||||
'EXT:zuladungsliste/Resources/Private/Language/locallang_csh_tx_zuladungsliste_domain_model_sektionstage.xlf'
|
||||
);
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_zuladungsliste_domain_model_sektionstage');
|
||||
|
||||
$GLOBALS['TCA']['tx_zuladungsliste_domain_model_sektionstage']['ctrl']['label_userFunc'] = 'HermannTelser\\Zuladungsliste\\Backend\\Labels->loadSektionstag';
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3_MODE') || die();
|
||||
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
|
||||
'tx_zuladungsliste_domain_model_wettbewerbe',
|
||||
'EXT:zuladungsliste/Resources/Private/Language/locallang_csh_tx_zuladungsliste_domain_model_wettbewerbe.xlf'
|
||||
);
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_zuladungsliste_domain_model_wettbewerbe');
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3_MODE') || die();
|
||||
|
||||
$GLOBALS['TCA']['tx_zuladungsliste_konto_aufloesung_mm']['ctrl']['formattedLabel_userFunc'] ='HermannTelser\\Zuladungsliste\\Backend\\Labels->loadPunkteVerteilungs' ;
|
||||
$GLOBALS['TCA']['tx_zuladungsliste_konto_aufloesung_mm']['ctrl']['formattedLabel_userFunc_options'] = array(
|
||||
'tx_zuladungsliste_konto_aufloesung_mm' => array(
|
||||
'uid_empfaenger',
|
||||
'prozente'
|
||||
)
|
||||
);
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3_MODE') || die();
|
||||
|
||||
$GLOBALS['TCA']['tx_zuladungsliste_punkte_kriterien_mm']['ctrl']['formattedLabel_userFunc'] = 'HermannTelser\\Zuladungsliste\\Backend\\Labels->loadKriterienPunkte' ;
|
||||
$GLOBALS['TCA']['tx_zuladungsliste_punkte_kriterien_mm']['ctrl']['formattedLabel_userFunc_options'] = [
|
||||
'tx_zuladungsliste_punkte_kriterien_mm' => [
|
||||
'uid_kriterien',
|
||||
'uid_punkte',
|
||||
'punkte'
|
||||
]
|
||||
];
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3_MODE') || die();
|
||||
|
||||
$GLOBALS['TCA']['tx_zuladungsliste_wettbewerbe_architekten_mm']['ctrl']['formattedLabel_userFunc'] ='HermannTelser\\Zuladungsliste\\Backend\\Labels->loadWettbewerbArchitekten' ;
|
||||
$GLOBALS['TCA']['tx_zuladungsliste_wettbewerbe_architekten_mm']['ctrl']['formattedLabel_userFunc_options'] = array(
|
||||
'tx_zuladungsliste_wettbewerbe_architekten_mm' => array(
|
||||
'uid_wettbewerbe',
|
||||
'uid_user',
|
||||
'uid_punkte',
|
||||
'notizen',
|
||||
'tstamp_zuordnung',
|
||||
'tstamp_aktivierung'
|
||||
)
|
||||
);
|
||||
Reference in new issue
Block a user