@@ -1,207 +1,207 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | return [ |
| 3 | 3 | 'ctrl' => [ |
| 4 | - 'title' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfcourse', |
|
| 5 | - 'label' => 'name', |
|
| 6 | - 'tstamp' => 'tstamp', |
|
| 7 | - 'crdate' => 'crdate', |
|
| 8 | - 'cruser_id' => 'cruser_id', |
|
| 9 | - 'dividers2tabs' => TRUE, |
|
| 10 | - 'versioningWS' => 2, |
|
| 11 | - 'versioning_followPages' => TRUE, |
|
| 4 | + 'title' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfcourse', |
|
| 5 | + 'label' => 'name', |
|
| 6 | + 'tstamp' => 'tstamp', |
|
| 7 | + 'crdate' => 'crdate', |
|
| 8 | + 'cruser_id' => 'cruser_id', |
|
| 9 | + 'dividers2tabs' => TRUE, |
|
| 10 | + 'versioningWS' => 2, |
|
| 11 | + 'versioning_followPages' => TRUE, |
|
| 12 | 12 | |
| 13 | - 'languageField' => 'sys_language_uid', |
|
| 14 | - 'transOrigPointerField' => 'l10n_parent', |
|
| 15 | - 'transOrigDiffSourceField' => 'l10n_diffsource', |
|
| 16 | - 'delete' => 'deleted', |
|
| 17 | - 'enablecolumns' => [ |
|
| 18 | - 'disabled' => 'hidden', |
|
| 19 | - 'starttime' => 'starttime', |
|
| 20 | - 'endtime' => 'endtime', |
|
| 21 | - ], |
|
| 22 | - 'searchFields' => 'name,website,comment,country,logo,', |
|
| 23 | - 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('golf_courses') . 'Resources/Public/Icons/tx_golfcourses_domain_model_golfcourse.png' |
|
| 24 | - ], |
|
| 25 | - 'interface' => [ |
|
| 26 | - 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, name, website, comment, country, logo', |
|
| 27 | - ], |
|
| 28 | - 'types' => [ |
|
| 29 | - '1' => ['showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, name, website, comment, country, logo, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'], |
|
| 30 | - ], |
|
| 31 | - 'palettes' => [ |
|
| 32 | - '1' => ['showitem' => ''], |
|
| 33 | - ], |
|
| 34 | - 'columns' => [ |
|
| 13 | + 'languageField' => 'sys_language_uid', |
|
| 14 | + 'transOrigPointerField' => 'l10n_parent', |
|
| 15 | + 'transOrigDiffSourceField' => 'l10n_diffsource', |
|
| 16 | + 'delete' => 'deleted', |
|
| 17 | + 'enablecolumns' => [ |
|
| 18 | + 'disabled' => 'hidden', |
|
| 19 | + 'starttime' => 'starttime', |
|
| 20 | + 'endtime' => 'endtime', |
|
| 21 | + ], |
|
| 22 | + 'searchFields' => 'name,website,comment,country,logo,', |
|
| 23 | + 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('golf_courses') . 'Resources/Public/Icons/tx_golfcourses_domain_model_golfcourse.png' |
|
| 24 | + ], |
|
| 25 | + 'interface' => [ |
|
| 26 | + 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, name, website, comment, country, logo', |
|
| 27 | + ], |
|
| 28 | + 'types' => [ |
|
| 29 | + '1' => ['showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, name, website, comment, country, logo, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'], |
|
| 30 | + ], |
|
| 31 | + 'palettes' => [ |
|
| 32 | + '1' => ['showitem' => ''], |
|
| 33 | + ], |
|
| 34 | + 'columns' => [ |
|
| 35 | 35 | |
| 36 | - 'sys_language_uid' => [ |
|
| 37 | - 'exclude' => 1, |
|
| 38 | - 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', |
|
| 39 | - 'config' => [ |
|
| 40 | - 'type' => 'select', |
|
| 41 | - 'renderType' => 'selectSingle', |
|
| 42 | - 'foreign_table' => 'sys_language', |
|
| 43 | - 'foreign_table_where' => 'ORDER BY sys_language.title', |
|
| 44 | - 'items' => [ |
|
| 45 | - ['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1], |
|
| 46 | - ['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0] |
|
| 47 | - ], |
|
| 48 | - ], |
|
| 49 | - ], |
|
| 50 | - 'l10n_parent' => [ |
|
| 51 | - 'displayCond' => 'FIELD:sys_language_uid:>:0', |
|
| 52 | - 'exclude' => 1, |
|
| 53 | - 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', |
|
| 54 | - 'config' => [ |
|
| 55 | - 'type' => 'select', |
|
| 56 | - 'renderType' => 'selectSingle', |
|
| 57 | - 'items' => [ |
|
| 58 | - ['', 0], |
|
| 59 | - ], |
|
| 60 | - 'foreign_table' => 'tx_golfcourses_domain_model_golfcourse', |
|
| 61 | - 'foreign_table_where' => 'AND tx_golfcourses_domain_model_golfcourse.pid=###CURRENT_PID### AND tx_golfcourses_domain_model_golfcourse.sys_language_uid IN (-1,0)', |
|
| 62 | - ], |
|
| 63 | - ], |
|
| 64 | - 'l10n_diffsource' => [ |
|
| 65 | - 'config' => [ |
|
| 66 | - 'type' => 'passthrough', |
|
| 67 | - ], |
|
| 68 | - ], |
|
| 69 | - 't3ver_label' => [ |
|
| 70 | - 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', |
|
| 71 | - 'config' => [ |
|
| 72 | - 'type' => 'input', |
|
| 73 | - 'size' => 30, |
|
| 74 | - 'max' => 255, |
|
| 75 | - ] |
|
| 76 | - ], |
|
| 77 | - 'hidden' => [ |
|
| 78 | - 'exclude' => 1, |
|
| 79 | - 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', |
|
| 80 | - 'config' => [ |
|
| 81 | - 'type' => 'check', |
|
| 82 | - ], |
|
| 83 | - ], |
|
| 84 | - 'starttime' => [ |
|
| 85 | - 'exclude' => 1, |
|
| 86 | - 'l10n_mode' => 'mergeIfNotBlank', |
|
| 87 | - 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', |
|
| 88 | - 'config' => [ |
|
| 89 | - 'type' => 'input', |
|
| 90 | - 'size' => 13, |
|
| 91 | - 'max' => 20, |
|
| 92 | - 'eval' => 'datetime', |
|
| 93 | - 'checkbox' => 0, |
|
| 94 | - 'default' => 0, |
|
| 95 | - 'range' => [ |
|
| 96 | - 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')) |
|
| 97 | - ], |
|
| 98 | - ], |
|
| 99 | - ], |
|
| 100 | - 'endtime' => [ |
|
| 101 | - 'exclude' => 1, |
|
| 102 | - 'l10n_mode' => 'mergeIfNotBlank', |
|
| 103 | - 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', |
|
| 104 | - 'config' => [ |
|
| 105 | - 'type' => 'input', |
|
| 106 | - 'size' => 13, |
|
| 107 | - 'max' => 20, |
|
| 108 | - 'eval' => 'datetime', |
|
| 109 | - 'checkbox' => 0, |
|
| 110 | - 'default' => 0, |
|
| 111 | - 'range' => [ |
|
| 112 | - 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')) |
|
| 113 | - ], |
|
| 114 | - ], |
|
| 115 | - ], |
|
| 116 | - 'name' => [ |
|
| 117 | - 'exclude' => 1, |
|
| 118 | - 'label' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfcourse.name', |
|
| 119 | - 'config' => [ |
|
| 120 | - 'type' => 'input', |
|
| 121 | - 'size' => 30, |
|
| 122 | - 'eval' => 'trim' |
|
| 123 | - ], |
|
| 124 | - ], |
|
| 125 | - 'website' => [ |
|
| 126 | - 'exclude' => 1, |
|
| 127 | - 'label' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfcourse.website', |
|
| 128 | - 'config' => [ |
|
| 129 | - 'type' => 'input', |
|
| 130 | - 'size' => 30, |
|
| 131 | - 'eval' => 'trim' |
|
| 132 | - ], |
|
| 133 | - ], |
|
| 134 | - 'comment' => [ |
|
| 135 | - 'exclude' => 1, |
|
| 136 | - 'label' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfcourse.comment', |
|
| 137 | - 'config' => [ |
|
| 138 | - 'type' => 'input', |
|
| 139 | - 'size' => 30, |
|
| 140 | - 'eval' => 'trim' |
|
| 141 | - ], |
|
| 142 | - ], |
|
| 143 | - 'country' => [ |
|
| 144 | - 'exclude' => 1, |
|
| 145 | - 'label' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfcourse.country', |
|
| 146 | - 'config' => [ |
|
| 147 | - 'type' => 'select', |
|
| 148 | - 'renderType' => 'selectSingle', |
|
| 149 | - 'items' => [ |
|
| 150 | - ['Select Country', -1], |
|
| 151 | - ], |
|
| 152 | - 'foreign_table' => 'static_countries', |
|
| 153 | - 'foreign_table_where' => 'ORDER BY cn_official_name_en ASC', |
|
| 154 | - 'size' => 1, |
|
| 155 | - 'maxitems' => 1, |
|
| 156 | - 'eval' => '' |
|
| 157 | - ], |
|
| 158 | - ], |
|
| 159 | - 'logo' => [ |
|
| 160 | - 'exclude' => 1, |
|
| 161 | - 'label' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfcourse.logo', |
|
| 162 | - 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig( |
|
| 163 | - 'logo', |
|
| 164 | - [ |
|
| 165 | - 'appearance' => [ |
|
| 166 | - 'createNewRelationLinkTitle' => 'LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference' |
|
| 167 | - ], |
|
| 168 | - 'foreign_types' => [ |
|
| 169 | - '0' => [ |
|
| 170 | - 'showitem' => ' |
|
| 36 | + 'sys_language_uid' => [ |
|
| 37 | + 'exclude' => 1, |
|
| 38 | + 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', |
|
| 39 | + 'config' => [ |
|
| 40 | + 'type' => 'select', |
|
| 41 | + 'renderType' => 'selectSingle', |
|
| 42 | + 'foreign_table' => 'sys_language', |
|
| 43 | + 'foreign_table_where' => 'ORDER BY sys_language.title', |
|
| 44 | + 'items' => [ |
|
| 45 | + ['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1], |
|
| 46 | + ['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0] |
|
| 47 | + ], |
|
| 48 | + ], |
|
| 49 | + ], |
|
| 50 | + 'l10n_parent' => [ |
|
| 51 | + 'displayCond' => 'FIELD:sys_language_uid:>:0', |
|
| 52 | + 'exclude' => 1, |
|
| 53 | + 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', |
|
| 54 | + 'config' => [ |
|
| 55 | + 'type' => 'select', |
|
| 56 | + 'renderType' => 'selectSingle', |
|
| 57 | + 'items' => [ |
|
| 58 | + ['', 0], |
|
| 59 | + ], |
|
| 60 | + 'foreign_table' => 'tx_golfcourses_domain_model_golfcourse', |
|
| 61 | + 'foreign_table_where' => 'AND tx_golfcourses_domain_model_golfcourse.pid=###CURRENT_PID### AND tx_golfcourses_domain_model_golfcourse.sys_language_uid IN (-1,0)', |
|
| 62 | + ], |
|
| 63 | + ], |
|
| 64 | + 'l10n_diffsource' => [ |
|
| 65 | + 'config' => [ |
|
| 66 | + 'type' => 'passthrough', |
|
| 67 | + ], |
|
| 68 | + ], |
|
| 69 | + 't3ver_label' => [ |
|
| 70 | + 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', |
|
| 71 | + 'config' => [ |
|
| 72 | + 'type' => 'input', |
|
| 73 | + 'size' => 30, |
|
| 74 | + 'max' => 255, |
|
| 75 | + ] |
|
| 76 | + ], |
|
| 77 | + 'hidden' => [ |
|
| 78 | + 'exclude' => 1, |
|
| 79 | + 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', |
|
| 80 | + 'config' => [ |
|
| 81 | + 'type' => 'check', |
|
| 82 | + ], |
|
| 83 | + ], |
|
| 84 | + 'starttime' => [ |
|
| 85 | + 'exclude' => 1, |
|
| 86 | + 'l10n_mode' => 'mergeIfNotBlank', |
|
| 87 | + 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', |
|
| 88 | + 'config' => [ |
|
| 89 | + 'type' => 'input', |
|
| 90 | + 'size' => 13, |
|
| 91 | + 'max' => 20, |
|
| 92 | + 'eval' => 'datetime', |
|
| 93 | + 'checkbox' => 0, |
|
| 94 | + 'default' => 0, |
|
| 95 | + 'range' => [ |
|
| 96 | + 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')) |
|
| 97 | + ], |
|
| 98 | + ], |
|
| 99 | + ], |
|
| 100 | + 'endtime' => [ |
|
| 101 | + 'exclude' => 1, |
|
| 102 | + 'l10n_mode' => 'mergeIfNotBlank', |
|
| 103 | + 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', |
|
| 104 | + 'config' => [ |
|
| 105 | + 'type' => 'input', |
|
| 106 | + 'size' => 13, |
|
| 107 | + 'max' => 20, |
|
| 108 | + 'eval' => 'datetime', |
|
| 109 | + 'checkbox' => 0, |
|
| 110 | + 'default' => 0, |
|
| 111 | + 'range' => [ |
|
| 112 | + 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')) |
|
| 113 | + ], |
|
| 114 | + ], |
|
| 115 | + ], |
|
| 116 | + 'name' => [ |
|
| 117 | + 'exclude' => 1, |
|
| 118 | + 'label' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfcourse.name', |
|
| 119 | + 'config' => [ |
|
| 120 | + 'type' => 'input', |
|
| 121 | + 'size' => 30, |
|
| 122 | + 'eval' => 'trim' |
|
| 123 | + ], |
|
| 124 | + ], |
|
| 125 | + 'website' => [ |
|
| 126 | + 'exclude' => 1, |
|
| 127 | + 'label' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfcourse.website', |
|
| 128 | + 'config' => [ |
|
| 129 | + 'type' => 'input', |
|
| 130 | + 'size' => 30, |
|
| 131 | + 'eval' => 'trim' |
|
| 132 | + ], |
|
| 133 | + ], |
|
| 134 | + 'comment' => [ |
|
| 135 | + 'exclude' => 1, |
|
| 136 | + 'label' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfcourse.comment', |
|
| 137 | + 'config' => [ |
|
| 138 | + 'type' => 'input', |
|
| 139 | + 'size' => 30, |
|
| 140 | + 'eval' => 'trim' |
|
| 141 | + ], |
|
| 142 | + ], |
|
| 143 | + 'country' => [ |
|
| 144 | + 'exclude' => 1, |
|
| 145 | + 'label' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfcourse.country', |
|
| 146 | + 'config' => [ |
|
| 147 | + 'type' => 'select', |
|
| 148 | + 'renderType' => 'selectSingle', |
|
| 149 | + 'items' => [ |
|
| 150 | + ['Select Country', -1], |
|
| 151 | + ], |
|
| 152 | + 'foreign_table' => 'static_countries', |
|
| 153 | + 'foreign_table_where' => 'ORDER BY cn_official_name_en ASC', |
|
| 154 | + 'size' => 1, |
|
| 155 | + 'maxitems' => 1, |
|
| 156 | + 'eval' => '' |
|
| 157 | + ], |
|
| 158 | + ], |
|
| 159 | + 'logo' => [ |
|
| 160 | + 'exclude' => 1, |
|
| 161 | + 'label' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfcourse.logo', |
|
| 162 | + 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig( |
|
| 163 | + 'logo', |
|
| 164 | + [ |
|
| 165 | + 'appearance' => [ |
|
| 166 | + 'createNewRelationLinkTitle' => 'LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference' |
|
| 167 | + ], |
|
| 168 | + 'foreign_types' => [ |
|
| 169 | + '0' => [ |
|
| 170 | + 'showitem' => ' |
|
| 171 | 171 | --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette, |
| 172 | 172 | --palette--;;filePalette' |
| 173 | - ], |
|
| 174 | - \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => [ |
|
| 175 | - 'showitem' => ' |
|
| 173 | + ], |
|
| 174 | + \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => [ |
|
| 175 | + 'showitem' => ' |
|
| 176 | 176 | --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette, |
| 177 | 177 | --palette--;;filePalette' |
| 178 | - ], |
|
| 179 | - \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [ |
|
| 180 | - 'showitem' => ' |
|
| 178 | + ], |
|
| 179 | + \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [ |
|
| 180 | + 'showitem' => ' |
|
| 181 | 181 | --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette, |
| 182 | 182 | --palette--;;filePalette' |
| 183 | - ], |
|
| 184 | - \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => [ |
|
| 185 | - 'showitem' => ' |
|
| 183 | + ], |
|
| 184 | + \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => [ |
|
| 185 | + 'showitem' => ' |
|
| 186 | 186 | --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette, |
| 187 | 187 | --palette--;;filePalette' |
| 188 | - ], |
|
| 189 | - \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => [ |
|
| 190 | - 'showitem' => ' |
|
| 188 | + ], |
|
| 189 | + \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => [ |
|
| 190 | + 'showitem' => ' |
|
| 191 | 191 | --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette, |
| 192 | 192 | --palette--;;filePalette' |
| 193 | - ], |
|
| 194 | - \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => [ |
|
| 195 | - 'showitem' => ' |
|
| 193 | + ], |
|
| 194 | + \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => [ |
|
| 195 | + 'showitem' => ' |
|
| 196 | 196 | --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette, |
| 197 | 197 | --palette--;;filePalette' |
| 198 | - ] |
|
| 199 | - ], |
|
| 200 | - 'maxitems' => 1 |
|
| 201 | - ], |
|
| 202 | - $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] |
|
| 203 | - ), |
|
| 204 | - ], |
|
| 198 | + ] |
|
| 199 | + ], |
|
| 200 | + 'maxitems' => 1 |
|
| 201 | + ], |
|
| 202 | + $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] |
|
| 203 | + ), |
|
| 204 | + ], |
|
| 205 | 205 | |
| 206 | - ], |
|
| 206 | + ], |
|
| 207 | 207 | ]; |
| 208 | 208 | \ No newline at end of file |
@@ -1,167 +1,167 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | return [ |
| 3 | - 'ctrl' => [ |
|
| 4 | - 'title' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfround', |
|
| 5 | - 'label' => 'date', |
|
| 6 | - 'tstamp' => 'tstamp', |
|
| 7 | - 'crdate' => 'crdate', |
|
| 8 | - 'cruser_id' => 'cruser_id', |
|
| 9 | - 'dividers2tabs' => TRUE, |
|
| 10 | - 'versioningWS' => 2, |
|
| 11 | - 'versioning_followPages' => TRUE, |
|
| 3 | + 'ctrl' => [ |
|
| 4 | + 'title' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfround', |
|
| 5 | + 'label' => 'date', |
|
| 6 | + 'tstamp' => 'tstamp', |
|
| 7 | + 'crdate' => 'crdate', |
|
| 8 | + 'cruser_id' => 'cruser_id', |
|
| 9 | + 'dividers2tabs' => TRUE, |
|
| 10 | + 'versioningWS' => 2, |
|
| 11 | + 'versioning_followPages' => TRUE, |
|
| 12 | 12 | |
| 13 | - 'languageField' => 'sys_language_uid', |
|
| 14 | - 'transOrigPointerField' => 'l10n_parent', |
|
| 15 | - 'transOrigDiffSourceField' => 'l10n_diffsource', |
|
| 16 | - 'delete' => 'deleted', |
|
| 17 | - 'enablecolumns' => [ |
|
| 18 | - 'disabled' => 'hidden', |
|
| 19 | - 'starttime' => 'starttime', |
|
| 20 | - 'endtime' => 'endtime', |
|
| 21 | - ], |
|
| 22 | - 'searchFields' => 'date,course,par,strokes,score', |
|
| 23 | - 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('golf_courses') . 'Resources/Public/Icons/tx_golfcourses_domain_model_golfround.png' |
|
| 24 | - ], |
|
| 25 | - 'interface' => [ |
|
| 26 | - 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, date, course, par, strokes, score', |
|
| 27 | - ], |
|
| 28 | - 'types' => [ |
|
| 29 | - '1' => ['showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, date, course, par, strokes, score, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'], |
|
| 30 | - ], |
|
| 31 | - 'palettes' => [ |
|
| 32 | - '1' => ['showitem' => ''], |
|
| 33 | - ], |
|
| 34 | - 'columns' => [ |
|
| 35 | - 'sys_language_uid' => [ |
|
| 36 | - 'exclude' => 1, |
|
| 37 | - 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', |
|
| 38 | - 'config' => [ |
|
| 39 | - 'type' => 'select', |
|
| 40 | - 'renderType' => 'selectSingle', |
|
| 41 | - 'foreign_table' => 'sys_language', |
|
| 42 | - 'foreign_table_where' => 'ORDER BY sys_language.title', |
|
| 43 | - 'items' => [ |
|
| 44 | - ['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1], |
|
| 45 | - ['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0] |
|
| 46 | - ], |
|
| 47 | - ], |
|
| 48 | - ], |
|
| 49 | - 'l10n_parent' => [ |
|
| 50 | - 'displayCond' => 'FIELD:sys_language_uid:>:0', |
|
| 51 | - 'exclude' => 1, |
|
| 52 | - 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', |
|
| 53 | - 'config' => [ |
|
| 54 | - 'type' => 'select', |
|
| 55 | - 'renderType' => 'selectSingle', |
|
| 56 | - 'items' => [ |
|
| 57 | - ['', 0], |
|
| 58 | - ], |
|
| 59 | - 'foreign_table' => 'tx_golfcourses_domain_model_golfround', |
|
| 60 | - 'foreign_table_where' => 'AND tx_golfcourses_domain_model_golfround.pid=###CURRENT_PID### AND tx_golfcourses_domain_model_golfround.sys_language_uid IN (-1,0)', |
|
| 61 | - ], |
|
| 62 | - ], |
|
| 63 | - 'l10n_diffsource' => [ |
|
| 64 | - 'config' => [ |
|
| 65 | - 'type' => 'passthrough', |
|
| 66 | - ], |
|
| 67 | - ], |
|
| 68 | - 't3ver_label' => [ |
|
| 69 | - 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', |
|
| 70 | - 'config' => [ |
|
| 71 | - 'type' => 'input', |
|
| 72 | - 'size' => 30, |
|
| 73 | - 'max' => 255, |
|
| 74 | - ] |
|
| 75 | - ], |
|
| 76 | - 'hidden' => [ |
|
| 77 | - 'exclude' => 1, |
|
| 78 | - 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', |
|
| 79 | - 'config' => [ |
|
| 80 | - 'type' => 'check', |
|
| 81 | - ], |
|
| 82 | - ], |
|
| 83 | - 'starttime' => [ |
|
| 84 | - 'exclude' => 1, |
|
| 85 | - 'l10n_mode' => 'mergeIfNotBlank', |
|
| 86 | - 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', |
|
| 87 | - 'config' => [ |
|
| 88 | - 'type' => 'input', |
|
| 89 | - 'size' => 13, |
|
| 90 | - 'max' => 20, |
|
| 91 | - 'eval' => 'datetime', |
|
| 92 | - 'checkbox' => 0, |
|
| 93 | - 'default' => 0, |
|
| 94 | - 'range' => [ |
|
| 95 | - 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')) |
|
| 96 | - ], |
|
| 97 | - ], |
|
| 98 | - ], |
|
| 99 | - 'endtime' => [ |
|
| 100 | - 'exclude' => 1, |
|
| 101 | - 'l10n_mode' => 'mergeIfNotBlank', |
|
| 102 | - 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', |
|
| 103 | - 'config' => [ |
|
| 104 | - 'type' => 'input', |
|
| 105 | - 'size' => 13, |
|
| 106 | - 'max' => 20, |
|
| 107 | - 'eval' => 'datetime', |
|
| 108 | - 'checkbox' => 0, |
|
| 109 | - 'default' => 0, |
|
| 110 | - 'range' => [ |
|
| 111 | - 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')) |
|
| 112 | - ], |
|
| 113 | - ], |
|
| 114 | - ], |
|
| 115 | - 'date' => [ |
|
| 116 | - 'exclude' => 1, |
|
| 117 | - 'label' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfround.date', |
|
| 118 | - 'config' => [ |
|
| 119 | - 'type' => 'input', |
|
| 120 | - 'size' => 13, |
|
| 121 | - 'max' => 20, |
|
| 122 | - 'eval' => 'date', |
|
| 123 | - 'checkbox' => 0, |
|
| 124 | - 'default' => 0, |
|
| 125 | - 'range' => [ |
|
| 126 | - 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')) |
|
| 127 | - ], |
|
| 128 | - ], |
|
| 129 | - ], |
|
| 130 | - 'course' => [ |
|
| 131 | - 'exclude' => 1, |
|
| 132 | - 'label' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfround.course', |
|
| 133 | - 'config' => [ |
|
| 134 | - 'type' => 'input', |
|
| 135 | - 'size' => 30, |
|
| 136 | - 'eval' => 'trim' |
|
| 137 | - ], |
|
| 138 | - ], |
|
| 139 | - 'par' => [ |
|
| 140 | - 'exclude' => 1, |
|
| 141 | - 'label' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfround.par', |
|
| 142 | - 'config' => [ |
|
| 143 | - 'type' => 'input', |
|
| 144 | - 'size' => 30, |
|
| 145 | - 'eval' => 'trim' |
|
| 146 | - ], |
|
| 147 | - ], |
|
| 148 | - 'strokes' => [ |
|
| 149 | - 'exclude' => 1, |
|
| 150 | - 'label' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfround.strokes', |
|
| 151 | - 'config' => [ |
|
| 152 | - 'type' => 'input', |
|
| 153 | - 'size' => 30, |
|
| 154 | - 'eval' => 'trim' |
|
| 155 | - ], |
|
| 156 | - ], |
|
| 157 | - 'score' => [ |
|
| 158 | - 'exclude' => 1, |
|
| 159 | - 'label' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfround.score', |
|
| 160 | - 'config' => [ |
|
| 161 | - 'type' => 'input', |
|
| 162 | - 'size' => 30, |
|
| 163 | - 'eval' => 'trim' |
|
| 164 | - ], |
|
| 165 | - ], |
|
| 166 | - ], |
|
| 13 | + 'languageField' => 'sys_language_uid', |
|
| 14 | + 'transOrigPointerField' => 'l10n_parent', |
|
| 15 | + 'transOrigDiffSourceField' => 'l10n_diffsource', |
|
| 16 | + 'delete' => 'deleted', |
|
| 17 | + 'enablecolumns' => [ |
|
| 18 | + 'disabled' => 'hidden', |
|
| 19 | + 'starttime' => 'starttime', |
|
| 20 | + 'endtime' => 'endtime', |
|
| 21 | + ], |
|
| 22 | + 'searchFields' => 'date,course,par,strokes,score', |
|
| 23 | + 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('golf_courses') . 'Resources/Public/Icons/tx_golfcourses_domain_model_golfround.png' |
|
| 24 | + ], |
|
| 25 | + 'interface' => [ |
|
| 26 | + 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, date, course, par, strokes, score', |
|
| 27 | + ], |
|
| 28 | + 'types' => [ |
|
| 29 | + '1' => ['showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, date, course, par, strokes, score, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'], |
|
| 30 | + ], |
|
| 31 | + 'palettes' => [ |
|
| 32 | + '1' => ['showitem' => ''], |
|
| 33 | + ], |
|
| 34 | + 'columns' => [ |
|
| 35 | + 'sys_language_uid' => [ |
|
| 36 | + 'exclude' => 1, |
|
| 37 | + 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', |
|
| 38 | + 'config' => [ |
|
| 39 | + 'type' => 'select', |
|
| 40 | + 'renderType' => 'selectSingle', |
|
| 41 | + 'foreign_table' => 'sys_language', |
|
| 42 | + 'foreign_table_where' => 'ORDER BY sys_language.title', |
|
| 43 | + 'items' => [ |
|
| 44 | + ['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1], |
|
| 45 | + ['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0] |
|
| 46 | + ], |
|
| 47 | + ], |
|
| 48 | + ], |
|
| 49 | + 'l10n_parent' => [ |
|
| 50 | + 'displayCond' => 'FIELD:sys_language_uid:>:0', |
|
| 51 | + 'exclude' => 1, |
|
| 52 | + 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', |
|
| 53 | + 'config' => [ |
|
| 54 | + 'type' => 'select', |
|
| 55 | + 'renderType' => 'selectSingle', |
|
| 56 | + 'items' => [ |
|
| 57 | + ['', 0], |
|
| 58 | + ], |
|
| 59 | + 'foreign_table' => 'tx_golfcourses_domain_model_golfround', |
|
| 60 | + 'foreign_table_where' => 'AND tx_golfcourses_domain_model_golfround.pid=###CURRENT_PID### AND tx_golfcourses_domain_model_golfround.sys_language_uid IN (-1,0)', |
|
| 61 | + ], |
|
| 62 | + ], |
|
| 63 | + 'l10n_diffsource' => [ |
|
| 64 | + 'config' => [ |
|
| 65 | + 'type' => 'passthrough', |
|
| 66 | + ], |
|
| 67 | + ], |
|
| 68 | + 't3ver_label' => [ |
|
| 69 | + 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', |
|
| 70 | + 'config' => [ |
|
| 71 | + 'type' => 'input', |
|
| 72 | + 'size' => 30, |
|
| 73 | + 'max' => 255, |
|
| 74 | + ] |
|
| 75 | + ], |
|
| 76 | + 'hidden' => [ |
|
| 77 | + 'exclude' => 1, |
|
| 78 | + 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', |
|
| 79 | + 'config' => [ |
|
| 80 | + 'type' => 'check', |
|
| 81 | + ], |
|
| 82 | + ], |
|
| 83 | + 'starttime' => [ |
|
| 84 | + 'exclude' => 1, |
|
| 85 | + 'l10n_mode' => 'mergeIfNotBlank', |
|
| 86 | + 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', |
|
| 87 | + 'config' => [ |
|
| 88 | + 'type' => 'input', |
|
| 89 | + 'size' => 13, |
|
| 90 | + 'max' => 20, |
|
| 91 | + 'eval' => 'datetime', |
|
| 92 | + 'checkbox' => 0, |
|
| 93 | + 'default' => 0, |
|
| 94 | + 'range' => [ |
|
| 95 | + 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')) |
|
| 96 | + ], |
|
| 97 | + ], |
|
| 98 | + ], |
|
| 99 | + 'endtime' => [ |
|
| 100 | + 'exclude' => 1, |
|
| 101 | + 'l10n_mode' => 'mergeIfNotBlank', |
|
| 102 | + 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', |
|
| 103 | + 'config' => [ |
|
| 104 | + 'type' => 'input', |
|
| 105 | + 'size' => 13, |
|
| 106 | + 'max' => 20, |
|
| 107 | + 'eval' => 'datetime', |
|
| 108 | + 'checkbox' => 0, |
|
| 109 | + 'default' => 0, |
|
| 110 | + 'range' => [ |
|
| 111 | + 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')) |
|
| 112 | + ], |
|
| 113 | + ], |
|
| 114 | + ], |
|
| 115 | + 'date' => [ |
|
| 116 | + 'exclude' => 1, |
|
| 117 | + 'label' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfround.date', |
|
| 118 | + 'config' => [ |
|
| 119 | + 'type' => 'input', |
|
| 120 | + 'size' => 13, |
|
| 121 | + 'max' => 20, |
|
| 122 | + 'eval' => 'date', |
|
| 123 | + 'checkbox' => 0, |
|
| 124 | + 'default' => 0, |
|
| 125 | + 'range' => [ |
|
| 126 | + 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')) |
|
| 127 | + ], |
|
| 128 | + ], |
|
| 129 | + ], |
|
| 130 | + 'course' => [ |
|
| 131 | + 'exclude' => 1, |
|
| 132 | + 'label' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfround.course', |
|
| 133 | + 'config' => [ |
|
| 134 | + 'type' => 'input', |
|
| 135 | + 'size' => 30, |
|
| 136 | + 'eval' => 'trim' |
|
| 137 | + ], |
|
| 138 | + ], |
|
| 139 | + 'par' => [ |
|
| 140 | + 'exclude' => 1, |
|
| 141 | + 'label' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfround.par', |
|
| 142 | + 'config' => [ |
|
| 143 | + 'type' => 'input', |
|
| 144 | + 'size' => 30, |
|
| 145 | + 'eval' => 'trim' |
|
| 146 | + ], |
|
| 147 | + ], |
|
| 148 | + 'strokes' => [ |
|
| 149 | + 'exclude' => 1, |
|
| 150 | + 'label' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfround.strokes', |
|
| 151 | + 'config' => [ |
|
| 152 | + 'type' => 'input', |
|
| 153 | + 'size' => 30, |
|
| 154 | + 'eval' => 'trim' |
|
| 155 | + ], |
|
| 156 | + ], |
|
| 157 | + 'score' => [ |
|
| 158 | + 'exclude' => 1, |
|
| 159 | + 'label' => 'LLL:EXT:golf_courses/Resources/Private/Language/locallang_db.xlf:tx_golfcourses_domain_model_golfround.score', |
|
| 160 | + 'config' => [ |
|
| 161 | + 'type' => 'input', |
|
| 162 | + 'size' => 30, |
|
| 163 | + 'eval' => 'trim' |
|
| 164 | + ], |
|
| 165 | + ], |
|
| 166 | + ], |
|
| 167 | 167 | ]; |
| 168 | 168 | \ No newline at end of file |
@@ -36,50 +36,50 @@ |
||
| 36 | 36 | class ListController extends ActionController |
| 37 | 37 | { |
| 38 | 38 | |
| 39 | - /** |
|
| 40 | - * golfCourseRepository |
|
| 41 | - * |
|
| 42 | - * @var \TNM\GolfCourses\Domain\Repository\GolfCourseRepository |
|
| 43 | - * @inject |
|
| 44 | - */ |
|
| 45 | - protected $golfCourseRepository = null; |
|
| 39 | + /** |
|
| 40 | + * golfCourseRepository |
|
| 41 | + * |
|
| 42 | + * @var \TNM\GolfCourses\Domain\Repository\GolfCourseRepository |
|
| 43 | + * @inject |
|
| 44 | + */ |
|
| 45 | + protected $golfCourseRepository = null; |
|
| 46 | 46 | |
| 47 | - /** |
|
| 48 | - * @var \SJBR\StaticInfoTables\Domain\Repository\CountryRepository |
|
| 49 | - * @inject |
|
| 50 | - */ |
|
| 51 | - protected $countryRepository = null; |
|
| 47 | + /** |
|
| 48 | + * @var \SJBR\StaticInfoTables\Domain\Repository\CountryRepository |
|
| 49 | + * @inject |
|
| 50 | + */ |
|
| 51 | + protected $countryRepository = null; |
|
| 52 | 52 | |
| 53 | - /** |
|
| 54 | - * action list |
|
| 55 | - * |
|
| 56 | - * @return void |
|
| 57 | - */ |
|
| 58 | - public function listAction() |
|
| 59 | - { |
|
| 53 | + /** |
|
| 54 | + * action list |
|
| 55 | + * |
|
| 56 | + * @return void |
|
| 57 | + */ |
|
| 58 | + public function listAction() |
|
| 59 | + { |
|
| 60 | 60 | |
| 61 | - $countryAndCourses = []; |
|
| 62 | - $coursesTotal = 0; |
|
| 63 | - $countriesUidsInUse = $this->golfCourseRepository->findCountriesUidsInUse(); |
|
| 61 | + $countryAndCourses = []; |
|
| 62 | + $coursesTotal = 0; |
|
| 63 | + $countriesUidsInUse = $this->golfCourseRepository->findCountriesUidsInUse(); |
|
| 64 | 64 | |
| 65 | - foreach ($countriesUidsInUse as $countryUid) { |
|
| 66 | - /** @var Country $country */ |
|
| 67 | - $country = $this->countryRepository->findByUid($countryUid); |
|
| 68 | - $countryName = $country->getShortNameEn(); |
|
| 69 | - $coursesInCountry = $this->golfCourseRepository->findAllInCountry($countryUid); |
|
| 70 | - if(!count($coursesInCountry)) { |
|
| 71 | - continue; |
|
| 72 | - } |
|
| 73 | - $countryAndCourses[$countryName]['name'] = $countryName; |
|
| 74 | - /** @var GolfCourse $course */ |
|
| 75 | - foreach ($coursesInCountry as $course) { |
|
| 76 | - $countryAndCourses[$countryName]['courses'][$course->getUid()] = $course; |
|
| 77 | - $coursesTotal++; |
|
| 78 | - } |
|
| 79 | - } |
|
| 65 | + foreach ($countriesUidsInUse as $countryUid) { |
|
| 66 | + /** @var Country $country */ |
|
| 67 | + $country = $this->countryRepository->findByUid($countryUid); |
|
| 68 | + $countryName = $country->getShortNameEn(); |
|
| 69 | + $coursesInCountry = $this->golfCourseRepository->findAllInCountry($countryUid); |
|
| 70 | + if(!count($coursesInCountry)) { |
|
| 71 | + continue; |
|
| 72 | + } |
|
| 73 | + $countryAndCourses[$countryName]['name'] = $countryName; |
|
| 74 | + /** @var GolfCourse $course */ |
|
| 75 | + foreach ($coursesInCountry as $course) { |
|
| 76 | + $countryAndCourses[$countryName]['courses'][$course->getUid()] = $course; |
|
| 77 | + $coursesTotal++; |
|
| 78 | + } |
|
| 79 | + } |
|
| 80 | 80 | |
| 81 | - $this->view->assign('countryAndCourses', $countryAndCourses); |
|
| 82 | - $this->view->assign('coursesCount', $coursesTotal); |
|
| 83 | - $this->view->assign('countriesCount', count($countryAndCourses)); |
|
| 84 | - } |
|
| 81 | + $this->view->assign('countryAndCourses', $countryAndCourses); |
|
| 82 | + $this->view->assign('coursesCount', $coursesTotal); |
|
| 83 | + $this->view->assign('countriesCount', count($countryAndCourses)); |
|
| 84 | + } |
|
| 85 | 85 | } |
| 86 | 86 | \ No newline at end of file |
@@ -35,17 +35,17 @@ |
||
| 35 | 35 | class RoundsController extends ActionController |
| 36 | 36 | { |
| 37 | 37 | |
| 38 | - /** |
|
| 39 | - * @var \TNM\GolfCourses\Domain\Repository\GolfRoundRepository |
|
| 40 | - * @inject |
|
| 41 | - */ |
|
| 42 | - protected $golfRoundRepository; |
|
| 38 | + /** |
|
| 39 | + * @var \TNM\GolfCourses\Domain\Repository\GolfRoundRepository |
|
| 40 | + * @inject |
|
| 41 | + */ |
|
| 42 | + protected $golfRoundRepository; |
|
| 43 | 43 | |
| 44 | - /** |
|
| 45 | - * @return void |
|
| 46 | - */ |
|
| 47 | - public function listAction() { |
|
| 48 | - $scores = $this->golfRoundRepository->findAll(); |
|
| 49 | - $this->view->assign('scores', $scores); |
|
| 50 | - } |
|
| 44 | + /** |
|
| 45 | + * @return void |
|
| 46 | + */ |
|
| 47 | + public function listAction() { |
|
| 48 | + $scores = $this->golfRoundRepository->findAll(); |
|
| 49 | + $this->view->assign('scores', $scores); |
|
| 50 | + } |
|
| 51 | 51 | } |
| 52 | 52 | \ No newline at end of file |
@@ -33,87 +33,87 @@ |
||
| 33 | 33 | class GolfRound extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity |
| 34 | 34 | { |
| 35 | 35 | |
| 36 | - /** |
|
| 37 | - * @var int |
|
| 38 | - */ |
|
| 39 | - protected $date; |
|
| 36 | + /** |
|
| 37 | + * @var int |
|
| 38 | + */ |
|
| 39 | + protected $date; |
|
| 40 | 40 | |
| 41 | - /** |
|
| 42 | - * @var GolfCourse |
|
| 43 | - */ |
|
| 44 | - protected $course; |
|
| 41 | + /** |
|
| 42 | + * @var GolfCourse |
|
| 43 | + */ |
|
| 44 | + protected $course; |
|
| 45 | 45 | |
| 46 | - /** |
|
| 47 | - * @var int |
|
| 48 | - */ |
|
| 49 | - protected $par; |
|
| 46 | + /** |
|
| 47 | + * @var int |
|
| 48 | + */ |
|
| 49 | + protected $par; |
|
| 50 | 50 | |
| 51 | - /** |
|
| 52 | - * @var int |
|
| 53 | - */ |
|
| 54 | - protected $strokes; |
|
| 51 | + /** |
|
| 52 | + * @var int |
|
| 53 | + */ |
|
| 54 | + protected $strokes; |
|
| 55 | 55 | |
| 56 | - /** |
|
| 57 | - * @return int |
|
| 58 | - */ |
|
| 59 | - public function getDate() |
|
| 60 | - { |
|
| 61 | - return $this->date; |
|
| 62 | - } |
|
| 56 | + /** |
|
| 57 | + * @return int |
|
| 58 | + */ |
|
| 59 | + public function getDate() |
|
| 60 | + { |
|
| 61 | + return $this->date; |
|
| 62 | + } |
|
| 63 | 63 | |
| 64 | - /** |
|
| 65 | - * @param int $date |
|
| 66 | - */ |
|
| 67 | - public function setDate($date) |
|
| 68 | - { |
|
| 69 | - $this->date = $date; |
|
| 70 | - } |
|
| 64 | + /** |
|
| 65 | + * @param int $date |
|
| 66 | + */ |
|
| 67 | + public function setDate($date) |
|
| 68 | + { |
|
| 69 | + $this->date = $date; |
|
| 70 | + } |
|
| 71 | 71 | |
| 72 | - /** |
|
| 73 | - * @return GolfCourse |
|
| 74 | - */ |
|
| 75 | - public function getCourse() |
|
| 76 | - { |
|
| 77 | - return $this->course; |
|
| 78 | - } |
|
| 72 | + /** |
|
| 73 | + * @return GolfCourse |
|
| 74 | + */ |
|
| 75 | + public function getCourse() |
|
| 76 | + { |
|
| 77 | + return $this->course; |
|
| 78 | + } |
|
| 79 | 79 | |
| 80 | - /** |
|
| 81 | - * @param GolfCourse $course |
|
| 82 | - */ |
|
| 83 | - public function setCourse($course) |
|
| 84 | - { |
|
| 85 | - $this->course = $course; |
|
| 86 | - } |
|
| 80 | + /** |
|
| 81 | + * @param GolfCourse $course |
|
| 82 | + */ |
|
| 83 | + public function setCourse($course) |
|
| 84 | + { |
|
| 85 | + $this->course = $course; |
|
| 86 | + } |
|
| 87 | 87 | |
| 88 | - /** |
|
| 89 | - * @return int |
|
| 90 | - */ |
|
| 91 | - public function getPar() |
|
| 92 | - { |
|
| 93 | - return $this->par; |
|
| 94 | - } |
|
| 88 | + /** |
|
| 89 | + * @return int |
|
| 90 | + */ |
|
| 91 | + public function getPar() |
|
| 92 | + { |
|
| 93 | + return $this->par; |
|
| 94 | + } |
|
| 95 | 95 | |
| 96 | - /** |
|
| 97 | - * @param int $par |
|
| 98 | - */ |
|
| 99 | - public function setPar($par) |
|
| 100 | - { |
|
| 101 | - $this->par = $par; |
|
| 102 | - } |
|
| 96 | + /** |
|
| 97 | + * @param int $par |
|
| 98 | + */ |
|
| 99 | + public function setPar($par) |
|
| 100 | + { |
|
| 101 | + $this->par = $par; |
|
| 102 | + } |
|
| 103 | 103 | |
| 104 | - /** |
|
| 105 | - * @return int |
|
| 106 | - */ |
|
| 107 | - public function getStrokes() |
|
| 108 | - { |
|
| 109 | - return $this->strokes; |
|
| 110 | - } |
|
| 104 | + /** |
|
| 105 | + * @return int |
|
| 106 | + */ |
|
| 107 | + public function getStrokes() |
|
| 108 | + { |
|
| 109 | + return $this->strokes; |
|
| 110 | + } |
|
| 111 | 111 | |
| 112 | - /** |
|
| 113 | - * @param int $strokes |
|
| 114 | - */ |
|
| 115 | - public function setStrokes($strokes) |
|
| 116 | - { |
|
| 117 | - $this->strokes = $strokes; |
|
| 118 | - } |
|
| 112 | + /** |
|
| 113 | + * @param int $strokes |
|
| 114 | + */ |
|
| 115 | + public function setStrokes($strokes) |
|
| 116 | + { |
|
| 117 | + $this->strokes = $strokes; |
|
| 118 | + } |
|
| 119 | 119 | } |
| 120 | 120 | \ No newline at end of file |