@@ -14,8 +14,7 @@ discard block |
||
| 14 | 14 | * The TYPO3 project - inspiring people to share! |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -class DocumentFormField extends AbstractFormElement |
|
| 18 | -{ |
|
| 17 | +class DocumentFormField extends AbstractFormElement { |
|
| 19 | 18 | |
| 20 | 19 | protected $value; |
| 21 | 20 | |
@@ -44,13 +43,11 @@ discard block |
||
| 44 | 43 | */ |
| 45 | 44 | protected $consent; |
| 46 | 45 | |
| 47 | - public function getValue() |
|
| 48 | - { |
|
| 46 | + public function getValue() { |
|
| 49 | 47 | return $this->value; |
| 50 | 48 | } |
| 51 | 49 | |
| 52 | - public function setValue($value, $defaultValue = '') |
|
| 53 | - { |
|
| 50 | + public function setValue($value, $defaultValue = '') { |
|
| 54 | 51 | |
| 55 | 52 | $this->hasDefaultValue = !empty($defaultValue); |
| 56 | 53 | |
@@ -81,13 +78,11 @@ discard block |
||
| 81 | 78 | } |
| 82 | 79 | } |
| 83 | 80 | |
| 84 | - public function getInputField() |
|
| 85 | - { |
|
| 81 | + public function getInputField() { |
|
| 86 | 82 | return $this->inputField; |
| 87 | 83 | } |
| 88 | 84 | |
| 89 | - public function setInputField($inputField) |
|
| 90 | - { |
|
| 85 | + public function setInputField($inputField) { |
|
| 91 | 86 | $this->inputField = $inputField; |
| 92 | 87 | } |
| 93 | 88 | |
@@ -95,8 +90,7 @@ discard block |
||
| 95 | 90 | * |
| 96 | 91 | * @return array |
| 97 | 92 | */ |
| 98 | - public function getInputOptions() |
|
| 99 | - { |
|
| 93 | + public function getInputOptions() { |
|
| 100 | 94 | return $this->inputOptions; |
| 101 | 95 | } |
| 102 | 96 | |
@@ -104,8 +98,7 @@ discard block |
||
| 104 | 98 | * |
| 105 | 99 | * @param \EWW\Dpf\Domain\Model\InputOptionList $inputOptionList |
| 106 | 100 | */ |
| 107 | - public function setInputOptions(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList = null) |
|
| 108 | - { |
|
| 101 | + public function setInputOptions(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList = null) { |
|
| 109 | 102 | |
| 110 | 103 | $this->inputOptions = array(); |
| 111 | 104 | |
@@ -125,8 +118,7 @@ discard block |
||
| 125 | 118 | * |
| 126 | 119 | * @return string $fillOutService |
| 127 | 120 | */ |
| 128 | - public function getFillOutService() |
|
| 129 | - { |
|
| 121 | + public function getFillOutService() { |
|
| 130 | 122 | return $this->fillOutService; |
| 131 | 123 | } |
| 132 | 124 | |
@@ -136,8 +128,7 @@ discard block |
||
| 136 | 128 | * @param string $fillOutService |
| 137 | 129 | * @return void |
| 138 | 130 | */ |
| 139 | - public function setFillOutService($fillOutService) |
|
| 140 | - { |
|
| 131 | + public function setFillOutService($fillOutService) { |
|
| 141 | 132 | $this->fillOutService = $fillOutService; |
| 142 | 133 | } |
| 143 | 134 | |
@@ -146,8 +137,7 @@ discard block |
||
| 146 | 137 | * |
| 147 | 138 | * @return boolean $consent |
| 148 | 139 | */ |
| 149 | - public function getConsent() |
|
| 150 | - { |
|
| 140 | + public function getConsent() { |
|
| 151 | 141 | return $this->consent; |
| 152 | 142 | } |
| 153 | 143 | |
@@ -157,33 +147,27 @@ discard block |
||
| 157 | 147 | * @param boolean $consent |
| 158 | 148 | * @return void |
| 159 | 149 | */ |
| 160 | - public function setConsent($consent) |
|
| 161 | - { |
|
| 150 | + public function setConsent($consent) { |
|
| 162 | 151 | $this->consent = $consent; |
| 163 | 152 | } |
| 164 | 153 | |
| 165 | - public function getHasDefaultValue() |
|
| 166 | - { |
|
| 154 | + public function getHasDefaultValue() { |
|
| 167 | 155 | return $this->hasDefaultValue; |
| 168 | 156 | } |
| 169 | 157 | |
| 170 | - public function getValidation() |
|
| 171 | - { |
|
| 158 | + public function getValidation() { |
|
| 172 | 159 | return $this->validation; |
| 173 | 160 | } |
| 174 | 161 | |
| 175 | - public function setValidation($validation) |
|
| 176 | - { |
|
| 162 | + public function setValidation($validation) { |
|
| 177 | 163 | $this->validation = $validation; |
| 178 | 164 | } |
| 179 | 165 | |
| 180 | - public function getDataType() |
|
| 181 | - { |
|
| 166 | + public function getDataType() { |
|
| 182 | 167 | return $this->dataType; |
| 183 | 168 | } |
| 184 | 169 | |
| 185 | - public function setDataType($dataType) |
|
| 186 | - { |
|
| 170 | + public function setDataType($dataType) { |
|
| 187 | 171 | $this->dataType = $dataType; |
| 188 | 172 | } |
| 189 | 173 | |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | const select = 2; |
| 69 | 69 | const checkbox = 3; |
| 70 | 70 | const hidden = 4; |
| 71 | - const radio = 5; |
|
| 71 | + const radio = 5; |
|
| 72 | 72 | |
| 73 | 73 | const INPUT_DATA_TYPE_REGEXP = "REGEXP"; |
| 74 | 74 | const INPUT_DATA_TYPE_DATE = "DATE"; |
@@ -17,8 +17,7 @@ discard block |
||
| 17 | 17 | /** |
| 18 | 18 | * MetadataObject |
| 19 | 19 | */ |
| 20 | -class MetadataObject extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity |
|
| 21 | -{ |
|
| 20 | +class MetadataObject extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity { |
|
| 22 | 21 | |
| 23 | 22 | /** |
| 24 | 23 | * name |
@@ -141,8 +140,7 @@ discard block |
||
| 141 | 140 | * |
| 142 | 141 | * @return string $name |
| 143 | 142 | */ |
| 144 | - public function getName() |
|
| 145 | - { |
|
| 143 | + public function getName() { |
|
| 146 | 144 | return $this->name; |
| 147 | 145 | } |
| 148 | 146 | |
@@ -152,8 +150,7 @@ discard block |
||
| 152 | 150 | * @param string $name |
| 153 | 151 | * @return void |
| 154 | 152 | */ |
| 155 | - public function setName($name) |
|
| 156 | - { |
|
| 153 | + public function setName($name) { |
|
| 157 | 154 | $this->name = $name; |
| 158 | 155 | } |
| 159 | 156 | |
@@ -162,8 +159,7 @@ discard block |
||
| 162 | 159 | * |
| 163 | 160 | * @return string $displayName |
| 164 | 161 | */ |
| 165 | - public function getDisplayName() |
|
| 166 | - { |
|
| 162 | + public function getDisplayName() { |
|
| 167 | 163 | return $this->displayName; |
| 168 | 164 | } |
| 169 | 165 | |
@@ -173,8 +169,7 @@ discard block |
||
| 173 | 169 | * @param string $displayName |
| 174 | 170 | * @return void |
| 175 | 171 | */ |
| 176 | - public function setDisplayName($displayName) |
|
| 177 | - { |
|
| 172 | + public function setDisplayName($displayName) { |
|
| 178 | 173 | $this->displayName = $displayName; |
| 179 | 174 | } |
| 180 | 175 | |
@@ -183,8 +178,7 @@ discard block |
||
| 183 | 178 | * |
| 184 | 179 | * @return integer $maxIteration |
| 185 | 180 | */ |
| 186 | - public function getMaxIteration() |
|
| 187 | - { |
|
| 181 | + public function getMaxIteration() { |
|
| 188 | 182 | return $this->maxIteration; |
| 189 | 183 | } |
| 190 | 184 | |
@@ -194,8 +188,7 @@ discard block |
||
| 194 | 188 | * @param integer $maxIteration |
| 195 | 189 | * @return void |
| 196 | 190 | */ |
| 197 | - public function setMaxIteration($maxIteration) |
|
| 198 | - { |
|
| 191 | + public function setMaxIteration($maxIteration) { |
|
| 199 | 192 | $this->maxIteration = $maxIteration; |
| 200 | 193 | } |
| 201 | 194 | |
@@ -204,8 +197,7 @@ discard block |
||
| 204 | 197 | * |
| 205 | 198 | * @return boolean $mandatory |
| 206 | 199 | */ |
| 207 | - public function getMandatory() |
|
| 208 | - { |
|
| 200 | + public function getMandatory() { |
|
| 209 | 201 | return $this->mandatory; |
| 210 | 202 | } |
| 211 | 203 | |
@@ -215,8 +207,7 @@ discard block |
||
| 215 | 207 | * @param boolean $mandatory |
| 216 | 208 | * @return void |
| 217 | 209 | */ |
| 218 | - public function setMandatory($mandatory) |
|
| 219 | - { |
|
| 210 | + public function setMandatory($mandatory) { |
|
| 220 | 211 | $this->mandatory = $mandatory; |
| 221 | 212 | } |
| 222 | 213 | |
@@ -225,8 +216,7 @@ discard block |
||
| 225 | 216 | * |
| 226 | 217 | * @return boolean |
| 227 | 218 | */ |
| 228 | - public function isMandatory() |
|
| 229 | - { |
|
| 219 | + public function isMandatory() { |
|
| 230 | 220 | return $this->mandatory; |
| 231 | 221 | } |
| 232 | 222 | |
@@ -235,8 +225,7 @@ discard block |
||
| 235 | 225 | * |
| 236 | 226 | * @return boolean $modsExtension |
| 237 | 227 | */ |
| 238 | - public function getModsExtension() |
|
| 239 | - { |
|
| 228 | + public function getModsExtension() { |
|
| 240 | 229 | return $this->modsExtension; |
| 241 | 230 | } |
| 242 | 231 | |
@@ -246,8 +235,7 @@ discard block |
||
| 246 | 235 | * @param boolean $modsExtension |
| 247 | 236 | * @return void |
| 248 | 237 | */ |
| 249 | - public function setModsExtension($modsExtension) |
|
| 250 | - { |
|
| 238 | + public function setModsExtension($modsExtension) { |
|
| 251 | 239 | $this->modsExtension = $modsExtension; |
| 252 | 240 | } |
| 253 | 241 | |
@@ -256,8 +244,7 @@ discard block |
||
| 256 | 244 | * |
| 257 | 245 | * @return boolean |
| 258 | 246 | */ |
| 259 | - public function isModsExtension() |
|
| 260 | - { |
|
| 247 | + public function isModsExtension() { |
|
| 261 | 248 | return $this->modsExtension; |
| 262 | 249 | } |
| 263 | 250 | |
@@ -266,8 +253,7 @@ discard block |
||
| 266 | 253 | * |
| 267 | 254 | * @return string $mapping |
| 268 | 255 | */ |
| 269 | - public function getMapping() |
|
| 270 | - { |
|
| 256 | + public function getMapping() { |
|
| 271 | 257 | return $this->mapping; |
| 272 | 258 | } |
| 273 | 259 | |
@@ -277,8 +263,7 @@ discard block |
||
| 277 | 263 | * @param string $mapping |
| 278 | 264 | * @return void |
| 279 | 265 | */ |
| 280 | - public function setMapping($mapping) |
|
| 281 | - { |
|
| 266 | + public function setMapping($mapping) { |
|
| 282 | 267 | $this->mapping = $mapping; |
| 283 | 268 | } |
| 284 | 269 | |
@@ -287,8 +272,7 @@ discard block |
||
| 287 | 272 | * |
| 288 | 273 | * @return string $relativeMapping |
| 289 | 274 | */ |
| 290 | - public function getRelativeMapping() |
|
| 291 | - { |
|
| 275 | + public function getRelativeMapping() { |
|
| 292 | 276 | $modsRegExp = "/^.*?mods:mods/i"; |
| 293 | 277 | $mapping = preg_replace($modsRegExp, "", $this->mapping); |
| 294 | 278 | return trim($mapping, " /"); |
@@ -299,8 +283,7 @@ discard block |
||
| 299 | 283 | * |
| 300 | 284 | * @return integer $inputField |
| 301 | 285 | */ |
| 302 | - public function getInputField() |
|
| 303 | - { |
|
| 286 | + public function getInputField() { |
|
| 304 | 287 | return $this->inputField; |
| 305 | 288 | } |
| 306 | 289 | |
@@ -310,8 +293,7 @@ discard block |
||
| 310 | 293 | * @param integer $inputField |
| 311 | 294 | * @return void |
| 312 | 295 | */ |
| 313 | - public function setInputField($inputField) |
|
| 314 | - { |
|
| 296 | + public function setInputField($inputField) { |
|
| 315 | 297 | $this->inputField = $inputField; |
| 316 | 298 | } |
| 317 | 299 | |
@@ -320,8 +302,7 @@ discard block |
||
| 320 | 302 | * |
| 321 | 303 | * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\MetadataObject> $metadataObject |
| 322 | 304 | */ |
| 323 | - public function getChildren() |
|
| 324 | - { |
|
| 305 | + public function getChildren() { |
|
| 325 | 306 | return null; |
| 326 | 307 | } |
| 327 | 308 | |
@@ -330,8 +311,7 @@ discard block |
||
| 330 | 311 | * |
| 331 | 312 | * @return \EWW\Dpf\Domain\Model\InputOptionList $inputOptionList |
| 332 | 313 | */ |
| 333 | - public function getInputOptionList() |
|
| 334 | - { |
|
| 314 | + public function getInputOptionList() { |
|
| 335 | 315 | return $this->inputOptionList; |
| 336 | 316 | } |
| 337 | 317 | |
@@ -341,8 +321,7 @@ discard block |
||
| 341 | 321 | * @param \EWW\Dpf\Domain\Model\InputOptionList $inputOptionList |
| 342 | 322 | * @return void |
| 343 | 323 | */ |
| 344 | - public function setInputOptionList(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList) |
|
| 345 | - { |
|
| 324 | + public function setInputOptionList(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList) { |
|
| 346 | 325 | $this->inputOptionList = $inputOptionList; |
| 347 | 326 | } |
| 348 | 327 | |
@@ -351,8 +330,7 @@ discard block |
||
| 351 | 330 | * |
| 352 | 331 | * @return string $fillOutService |
| 353 | 332 | */ |
| 354 | - public function getFillOutService() |
|
| 355 | - { |
|
| 333 | + public function getFillOutService() { |
|
| 356 | 334 | return $this->fillOutService; |
| 357 | 335 | } |
| 358 | 336 | |
@@ -362,8 +340,7 @@ discard block |
||
| 362 | 340 | * @param string $fillOutService |
| 363 | 341 | * @return void |
| 364 | 342 | */ |
| 365 | - public function setFillOutService($fillOutService) |
|
| 366 | - { |
|
| 343 | + public function setFillOutService($fillOutService) { |
|
| 367 | 344 | $this->fillOutService = $fillOutService; |
| 368 | 345 | } |
| 369 | 346 | |
@@ -372,8 +349,7 @@ discard block |
||
| 372 | 349 | * |
| 373 | 350 | * @return boolean $backendOnly |
| 374 | 351 | */ |
| 375 | - public function getBackendOnly() |
|
| 376 | - { |
|
| 352 | + public function getBackendOnly() { |
|
| 377 | 353 | return $this->backendOnly; |
| 378 | 354 | } |
| 379 | 355 | |
@@ -383,8 +359,7 @@ discard block |
||
| 383 | 359 | * @param boolean $backendOnly |
| 384 | 360 | * @return void |
| 385 | 361 | */ |
| 386 | - public function setBackendOnly($backendOnly) |
|
| 387 | - { |
|
| 362 | + public function setBackendOnly($backendOnly) { |
|
| 388 | 363 | $this->backendOnly = $backendOnly; |
| 389 | 364 | } |
| 390 | 365 | |
@@ -393,8 +368,7 @@ discard block |
||
| 393 | 368 | * |
| 394 | 369 | * @return boolean $consent |
| 395 | 370 | */ |
| 396 | - public function getConsent() |
|
| 397 | - { |
|
| 371 | + public function getConsent() { |
|
| 398 | 372 | return $this->consent; |
| 399 | 373 | } |
| 400 | 374 | |
@@ -404,8 +378,7 @@ discard block |
||
| 404 | 378 | * @param boolean $consent |
| 405 | 379 | * @return void |
| 406 | 380 | */ |
| 407 | - public function setConsent($consent) |
|
| 408 | - { |
|
| 381 | + public function setConsent($consent) { |
|
| 409 | 382 | $this->consent = $consent; |
| 410 | 383 | } |
| 411 | 384 | |
@@ -414,8 +387,7 @@ discard block |
||
| 414 | 387 | * |
| 415 | 388 | * @return string $defaultValue |
| 416 | 389 | */ |
| 417 | - public function getDefaultValue() |
|
| 418 | - { |
|
| 390 | + public function getDefaultValue() { |
|
| 419 | 391 | return $this->defaultValue; |
| 420 | 392 | } |
| 421 | 393 | |
@@ -425,8 +397,7 @@ discard block |
||
| 425 | 397 | * @param string $defaultValue |
| 426 | 398 | * @return void |
| 427 | 399 | */ |
| 428 | - public function setDefaultValue($defaultValue) |
|
| 429 | - { |
|
| 400 | + public function setDefaultValue($defaultValue) { |
|
| 430 | 401 | $this->defaultValue = $defaultValue; |
| 431 | 402 | } |
| 432 | 403 | |
@@ -435,8 +406,7 @@ discard block |
||
| 435 | 406 | * |
| 436 | 407 | * @return string $validation |
| 437 | 408 | */ |
| 438 | - public function getValidation() |
|
| 439 | - { |
|
| 409 | + public function getValidation() { |
|
| 440 | 410 | return $this->validation; |
| 441 | 411 | } |
| 442 | 412 | |
@@ -446,8 +416,7 @@ discard block |
||
| 446 | 416 | * @param string $validation |
| 447 | 417 | * @return void |
| 448 | 418 | */ |
| 449 | - public function setValidation($validation) |
|
| 450 | - { |
|
| 419 | + public function setValidation($validation) { |
|
| 451 | 420 | $this->validation = $validation; |
| 452 | 421 | } |
| 453 | 422 | |
@@ -456,8 +425,7 @@ discard block |
||
| 456 | 425 | * |
| 457 | 426 | * @return string $dataType |
| 458 | 427 | */ |
| 459 | - public function getDataType() |
|
| 460 | - { |
|
| 428 | + public function getDataType() { |
|
| 461 | 429 | return $this->dataType; |
| 462 | 430 | } |
| 463 | 431 | |
@@ -467,8 +435,7 @@ discard block |
||
| 467 | 435 | * @param string $dataType |
| 468 | 436 | * @return void |
| 469 | 437 | */ |
| 470 | - public function setDataType($dataType) |
|
| 471 | - { |
|
| 438 | + public function setDataType($dataType) { |
|
| 472 | 439 | $this->dataType = $dataType; |
| 473 | 440 | } |
| 474 | 441 | |
@@ -476,16 +443,14 @@ discard block |
||
| 476 | 443 | /** |
| 477 | 444 | * @return string |
| 478 | 445 | */ |
| 479 | - public function getLinkedFieldUid() |
|
| 480 | - { |
|
| 446 | + public function getLinkedFieldUid() { |
|
| 481 | 447 | return $this->linkedFieldUid; |
| 482 | 448 | } |
| 483 | 449 | |
| 484 | 450 | /** |
| 485 | 451 | * @param string $linkedFieldUid |
| 486 | 452 | */ |
| 487 | - public function setLinkedFieldUid($linkedFieldUid) |
|
| 488 | - { |
|
| 453 | + public function setLinkedFieldUid($linkedFieldUid) { |
|
| 489 | 454 | $this->linkedFieldUid = $linkedFieldUid; |
| 490 | 455 | } |
| 491 | 456 | |
@@ -14,15 +14,13 @@ |
||
| 14 | 14 | * The TYPO3 project - inspiring people to share! |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -class IsUrlStringViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper |
|
| 18 | -{ |
|
| 17 | +class IsUrlStringViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper { |
|
| 19 | 18 | /** |
| 20 | 19 | * |
| 21 | 20 | * @param string $url |
| 22 | 21 | * @return boolen |
| 23 | 22 | */ |
| 24 | - public function render($url) |
|
| 25 | - { |
|
| 23 | + public function render($url) { |
|
| 26 | 24 | if (filter_var($url, FILTER_VALIDATE_URL)) { |
| 27 | 25 | return TRUE; |
| 28 | 26 | } |
@@ -16,8 +16,8 @@ discard block |
||
| 16 | 16 | die('Access denied.'); |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | -return array( |
|
| 20 | - 'ctrl' => array( |
|
| 19 | +return array ( |
|
| 20 | + 'ctrl' => array ( |
|
| 21 | 21 | 'title' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject', |
| 22 | 22 | 'label' => 'name', |
| 23 | 23 | 'tstamp' => 'tstamp', |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | 'transOrigPointerField' => 'l10n_parent', |
| 33 | 33 | 'transOrigDiffSourceField' => 'l10n_diffsource', |
| 34 | 34 | 'delete' => 'deleted', |
| 35 | - 'enablecolumns' => array( |
|
| 35 | + 'enablecolumns' => array ( |
|
| 36 | 36 | 'disabled' => 'hidden', |
| 37 | 37 | 'starttime' => 'starttime', |
| 38 | 38 | 'endtime' => 'endtime', |
@@ -40,228 +40,228 @@ discard block |
||
| 40 | 40 | 'searchFields' => 'name,display_name,max_iteration,mandatory,mapping,mods_extension,input_field,', |
| 41 | 41 | 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('dpf') . 'Resources/Public/Icons/tx_dpf_domain_model_metadataobject.gif', |
| 42 | 42 | ), |
| 43 | - 'interface' => array( |
|
| 43 | + 'interface' => array ( |
|
| 44 | 44 | 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, name, display_name, max_iteration, mandatory, data_type, validation, mapping, mods_extension, input_field, input_option_list, fill_out_service, linked_field_uid, default_value, backend_only, consent', |
| 45 | 45 | ), |
| 46 | - 'types' => array( |
|
| 47 | - '1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, name, display_name, max_iteration, mandatory, data_type, validation, mapping, mods_extension, input_field, input_option_list, fill_out_service, linked_field_uid, default_value, backend_only, consent, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'), |
|
| 46 | + 'types' => array ( |
|
| 47 | + '1' => array ('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, name, display_name, max_iteration, mandatory, data_type, validation, mapping, mods_extension, input_field, input_option_list, fill_out_service, linked_field_uid, default_value, backend_only, consent, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'), |
|
| 48 | 48 | ), |
| 49 | - 'palettes' => array( |
|
| 50 | - '1' => array('showitem' => ''), |
|
| 49 | + 'palettes' => array ( |
|
| 50 | + '1' => array ('showitem' => ''), |
|
| 51 | 51 | ), |
| 52 | - 'columns' => array( |
|
| 52 | + 'columns' => array ( |
|
| 53 | 53 | |
| 54 | - 'sys_language_uid' => array( |
|
| 54 | + 'sys_language_uid' => array ( |
|
| 55 | 55 | 'exclude' => 1, |
| 56 | 56 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', |
| 57 | - 'config' => array( |
|
| 57 | + 'config' => array ( |
|
| 58 | 58 | //'readOnly' => 1, |
| 59 | 59 | 'type' => 'select', |
| 60 | 60 | 'foreign_table' => 'sys_language', |
| 61 | 61 | 'foreign_table_where' => 'ORDER BY sys_language.title', |
| 62 | - 'items' => array( |
|
| 63 | - array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1), |
|
| 64 | - array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0), |
|
| 62 | + 'items' => array ( |
|
| 63 | + array ('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1), |
|
| 64 | + array ('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0), |
|
| 65 | 65 | ), |
| 66 | 66 | ), |
| 67 | 67 | ), |
| 68 | - 'l10n_parent' => array( |
|
| 68 | + 'l10n_parent' => array ( |
|
| 69 | 69 | 'displayCond' => 'FIELD:sys_language_uid:>:0', |
| 70 | 70 | 'exclude' => 1, |
| 71 | 71 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', |
| 72 | - 'config' => array( |
|
| 72 | + 'config' => array ( |
|
| 73 | 73 | //'readOnly' => 1, |
| 74 | 74 | 'type' => 'select', |
| 75 | - 'items' => array( |
|
| 76 | - array('', 0), |
|
| 75 | + 'items' => array ( |
|
| 76 | + array ('', 0), |
|
| 77 | 77 | ), |
| 78 | 78 | 'foreign_table' => 'tx_dpf_domain_model_metadataobject', |
| 79 | 79 | 'foreign_table_where' => 'AND tx_dpf_domain_model_metadataobject.pid=###CURRENT_PID### AND tx_dpf_domain_model_metadataobject.sys_language_uid IN (-1,0)', |
| 80 | 80 | ), |
| 81 | 81 | ), |
| 82 | - 'l10n_diffsource' => array( |
|
| 83 | - 'config' => array( |
|
| 82 | + 'l10n_diffsource' => array ( |
|
| 83 | + 'config' => array ( |
|
| 84 | 84 | 'type' => 'passthrough', |
| 85 | 85 | ), |
| 86 | 86 | ), |
| 87 | 87 | |
| 88 | - 't3ver_label' => array( |
|
| 88 | + 't3ver_label' => array ( |
|
| 89 | 89 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', |
| 90 | - 'config' => array( |
|
| 90 | + 'config' => array ( |
|
| 91 | 91 | 'type' => 'input', |
| 92 | 92 | 'size' => 30, |
| 93 | 93 | 'max' => 255, |
| 94 | 94 | ), |
| 95 | 95 | ), |
| 96 | 96 | |
| 97 | - 'hidden' => array( |
|
| 97 | + 'hidden' => array ( |
|
| 98 | 98 | 'exclude' => 1, |
| 99 | 99 | 'l10n_mode' => 'exclude', |
| 100 | 100 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', |
| 101 | - 'config' => array( |
|
| 101 | + 'config' => array ( |
|
| 102 | 102 | 'type' => 'check', |
| 103 | 103 | ), |
| 104 | 104 | ), |
| 105 | - 'starttime' => array( |
|
| 105 | + 'starttime' => array ( |
|
| 106 | 106 | 'exclude' => 1, |
| 107 | 107 | 'l10n_mode' => 'mergeIfNotBlank', |
| 108 | 108 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', |
| 109 | - 'config' => array( |
|
| 109 | + 'config' => array ( |
|
| 110 | 110 | 'type' => 'input', |
| 111 | 111 | 'size' => 13, |
| 112 | 112 | 'max' => 20, |
| 113 | 113 | 'eval' => 'datetime', |
| 114 | 114 | 'checkbox' => 0, |
| 115 | 115 | 'default' => 0, |
| 116 | - 'range' => array( |
|
| 116 | + 'range' => array ( |
|
| 117 | 117 | 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), |
| 118 | 118 | ), |
| 119 | 119 | ), |
| 120 | 120 | ), |
| 121 | - 'endtime' => array( |
|
| 121 | + 'endtime' => array ( |
|
| 122 | 122 | 'exclude' => 1, |
| 123 | 123 | 'l10n_mode' => 'mergeIfNotBlank', |
| 124 | 124 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', |
| 125 | - 'config' => array( |
|
| 125 | + 'config' => array ( |
|
| 126 | 126 | 'type' => 'input', |
| 127 | 127 | 'size' => 13, |
| 128 | 128 | 'max' => 20, |
| 129 | 129 | 'eval' => 'datetime', |
| 130 | 130 | 'checkbox' => 0, |
| 131 | 131 | 'default' => 0, |
| 132 | - 'range' => array( |
|
| 132 | + 'range' => array ( |
|
| 133 | 133 | 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), |
| 134 | 134 | ), |
| 135 | 135 | ), |
| 136 | 136 | ), |
| 137 | 137 | |
| 138 | - 'name' => array( |
|
| 138 | + 'name' => array ( |
|
| 139 | 139 | 'exclude' => 1, |
| 140 | 140 | 'l10n_mode' => 'exclude', |
| 141 | 141 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.name', |
| 142 | - 'config' => array( |
|
| 142 | + 'config' => array ( |
|
| 143 | 143 | 'type' => 'input', |
| 144 | 144 | 'size' => 30, |
| 145 | 145 | 'eval' => 'trim', |
| 146 | 146 | ), |
| 147 | 147 | ), |
| 148 | - 'display_name' => array( |
|
| 148 | + 'display_name' => array ( |
|
| 149 | 149 | 'exclude' => 1, |
| 150 | 150 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.display_name', |
| 151 | - 'config' => array( |
|
| 151 | + 'config' => array ( |
|
| 152 | 152 | 'type' => 'input', |
| 153 | 153 | 'size' => 30, |
| 154 | 154 | 'eval' => 'trim', |
| 155 | 155 | ), |
| 156 | 156 | ), |
| 157 | - 'max_iteration' => array( |
|
| 157 | + 'max_iteration' => array ( |
|
| 158 | 158 | 'exclude' => 1, |
| 159 | 159 | 'l10n_mode' => 'exclude', |
| 160 | 160 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.max_iteration', |
| 161 | - 'config' => array( |
|
| 161 | + 'config' => array ( |
|
| 162 | 162 | 'type' => 'input', |
| 163 | 163 | 'size' => 4, |
| 164 | 164 | 'eval' => 'int', |
| 165 | 165 | ), |
| 166 | 166 | ), |
| 167 | - 'mandatory' => array( |
|
| 167 | + 'mandatory' => array ( |
|
| 168 | 168 | 'exclude' => 1, |
| 169 | 169 | 'l10n_mode' => 'exclude', |
| 170 | 170 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory', |
| 171 | - 'config' => array( |
|
| 171 | + 'config' => array ( |
|
| 172 | 172 | 'type' => 'check', |
| 173 | 173 | 'default' => 0, |
| 174 | 174 | ), |
| 175 | 175 | ), |
| 176 | - 'mapping' => array( |
|
| 176 | + 'mapping' => array ( |
|
| 177 | 177 | 'exclude' => 1, |
| 178 | 178 | 'l10n_mode' => 'exclude', |
| 179 | 179 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mapping', |
| 180 | - 'config' => array( |
|
| 180 | + 'config' => array ( |
|
| 181 | 181 | 'type' => 'input', |
| 182 | 182 | 'size' => 30, |
| 183 | 183 | 'eval' => 'trim', |
| 184 | 184 | ), |
| 185 | 185 | ), |
| 186 | - 'data_type' => array( |
|
| 186 | + 'data_type' => array ( |
|
| 187 | 187 | 'exclude' => 1, |
| 188 | 188 | 'l10n_mode' => 'exclude', |
| 189 | 189 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.data_type', |
| 190 | - 'config' => array( |
|
| 190 | + 'config' => array ( |
|
| 191 | 191 | 'type' => 'select', |
| 192 | - 'items' => array( |
|
| 193 | - array('', ''), |
|
| 194 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.data_type.regexp', \EWW\Dpf\Domain\Model\MetadataObject::INPUT_DATA_TYPE_REGEXP), |
|
| 195 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.data_type.date', \EWW\Dpf\Domain\Model\MetadataObject::INPUT_DATA_TYPE_DATE), |
|
| 192 | + 'items' => array ( |
|
| 193 | + array ('', ''), |
|
| 194 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.data_type.regexp', \EWW\Dpf\Domain\Model\MetadataObject::INPUT_DATA_TYPE_REGEXP), |
|
| 195 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.data_type.date', \EWW\Dpf\Domain\Model\MetadataObject::INPUT_DATA_TYPE_DATE), |
|
| 196 | 196 | ), |
| 197 | 197 | 'size' => 1, |
| 198 | 198 | 'maxitems' => 1, |
| 199 | 199 | 'eval' => '', |
| 200 | 200 | ), |
| 201 | 201 | ), |
| 202 | - 'validation' => array( |
|
| 202 | + 'validation' => array ( |
|
| 203 | 203 | 'exclude' => 1, |
| 204 | 204 | 'l10n_mode' => 'exclude', |
| 205 | 205 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.validation', |
| 206 | - 'config' => array( |
|
| 206 | + 'config' => array ( |
|
| 207 | 207 | 'type' => 'input', |
| 208 | 208 | 'size' => 30, |
| 209 | 209 | 'eval' => 'trim', |
| 210 | 210 | ), |
| 211 | 211 | ), |
| 212 | - 'mods_extension' => array( |
|
| 212 | + 'mods_extension' => array ( |
|
| 213 | 213 | 'exclude' => 1, |
| 214 | 214 | 'l10n_mode' => 'exclude', |
| 215 | 215 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mods_extension', |
| 216 | - 'config' => array( |
|
| 216 | + 'config' => array ( |
|
| 217 | 217 | 'type' => 'check', |
| 218 | 218 | 'default' => 0, |
| 219 | 219 | ), |
| 220 | 220 | ), |
| 221 | - 'backend_only' => array( |
|
| 221 | + 'backend_only' => array ( |
|
| 222 | 222 | 'exclude' => 1, |
| 223 | 223 | 'l10n_mode' => 'exclude', |
| 224 | 224 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.backend_only', |
| 225 | - 'config' => array( |
|
| 225 | + 'config' => array ( |
|
| 226 | 226 | 'type' => 'check', |
| 227 | 227 | 'default' => 0, |
| 228 | 228 | ), |
| 229 | 229 | ), |
| 230 | - 'consent' => array( |
|
| 230 | + 'consent' => array ( |
|
| 231 | 231 | 'exclude' => 1, |
| 232 | 232 | 'l10n_mode' => 'exclude', |
| 233 | 233 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.consent', |
| 234 | - 'config' => array( |
|
| 234 | + 'config' => array ( |
|
| 235 | 235 | 'type' => 'check', |
| 236 | 236 | 'default' => 0, |
| 237 | 237 | ), |
| 238 | 238 | ), |
| 239 | - 'input_field' => array( |
|
| 239 | + 'input_field' => array ( |
|
| 240 | 240 | 'exclude' => 1, |
| 241 | 241 | 'l10n_mode' => 'exclude', |
| 242 | 242 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_field', |
| 243 | - 'config' => array( |
|
| 243 | + 'config' => array ( |
|
| 244 | 244 | 'type' => 'select', |
| 245 | - 'items' => array( |
|
| 246 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.input', \EWW\Dpf\Domain\Model\MetadataObject::input), |
|
| 247 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.textarea', \EWW\Dpf\Domain\Model\MetadataObject::textarea), |
|
| 248 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.select', \EWW\Dpf\Domain\Model\MetadataObject::select), |
|
| 249 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.checkbox', \EWW\Dpf\Domain\Model\MetadataObject::checkbox), |
|
| 250 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.hidden', \EWW\Dpf\Domain\Model\MetadataObject::hidden), |
|
| 251 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.radio', \EWW\Dpf\Domain\Model\MetadataObject::radio), |
|
| 245 | + 'items' => array ( |
|
| 246 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.input', \EWW\Dpf\Domain\Model\MetadataObject::input), |
|
| 247 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.textarea', \EWW\Dpf\Domain\Model\MetadataObject::textarea), |
|
| 248 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.select', \EWW\Dpf\Domain\Model\MetadataObject::select), |
|
| 249 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.checkbox', \EWW\Dpf\Domain\Model\MetadataObject::checkbox), |
|
| 250 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.hidden', \EWW\Dpf\Domain\Model\MetadataObject::hidden), |
|
| 251 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.radio', \EWW\Dpf\Domain\Model\MetadataObject::radio), |
|
| 252 | 252 | ), |
| 253 | 253 | 'size' => 1, |
| 254 | 254 | 'maxitems' => 1, |
| 255 | 255 | 'eval' => '', |
| 256 | 256 | ), |
| 257 | 257 | ), |
| 258 | - 'input_option_list' => array( |
|
| 258 | + 'input_option_list' => array ( |
|
| 259 | 259 | 'exclude' => 1, |
| 260 | 260 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_option_list', |
| 261 | - 'config' => array( |
|
| 261 | + 'config' => array ( |
|
| 262 | 262 | 'type' => 'select', |
| 263 | - 'items' => array( |
|
| 264 | - array('', 0), |
|
| 263 | + 'items' => array ( |
|
| 264 | + array ('', 0), |
|
| 265 | 265 | ), |
| 266 | 266 | 'foreign_table' => 'tx_dpf_domain_model_inputoptionlist', |
| 267 | 267 | 'foreign_table_where' => ' AND (tx_dpf_domain_model_inputoptionlist.pid=###CURRENT_PID###) AND (tx_dpf_domain_model_inputoptionlist.sys_language_uid = 0)', |
@@ -269,44 +269,44 @@ discard block |
||
| 269 | 269 | 'maxitems' => 1, |
| 270 | 270 | ), |
| 271 | 271 | ), |
| 272 | - 'default_value' => array( |
|
| 272 | + 'default_value' => array ( |
|
| 273 | 273 | 'exclude' => 1, |
| 274 | 274 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.default_value', |
| 275 | - 'config' => array( |
|
| 275 | + 'config' => array ( |
|
| 276 | 276 | 'type' => 'text', |
| 277 | 277 | 'cols' => 20, |
| 278 | 278 | 'rows' => 3, |
| 279 | 279 | 'eval' => 'trim', |
| 280 | 280 | ), |
| 281 | 281 | ), |
| 282 | - 'fill_out_service' => array( |
|
| 282 | + 'fill_out_service' => array ( |
|
| 283 | 283 | 'exclude' => 1, |
| 284 | 284 | 'l10n_mode' => 'exclude', |
| 285 | 285 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.fill_out_service', |
| 286 | - 'config' => array( |
|
| 286 | + 'config' => array ( |
|
| 287 | 287 | 'type' => 'select', |
| 288 | - 'items' => array( |
|
| 289 | - array('', 0), |
|
| 290 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.fill_out_service.urn', \EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_URN), |
|
| 288 | + 'items' => array ( |
|
| 289 | + array ('', 0), |
|
| 290 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.fill_out_service.urn', \EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_URN), |
|
| 291 | 291 | ), |
| 292 | 292 | 'size' => 1, |
| 293 | 293 | 'maxitems' => 1, |
| 294 | 294 | 'eval' => '', |
| 295 | 295 | ), |
| 296 | 296 | ), |
| 297 | - 'linked_field_uid' => array( |
|
| 298 | - 'displayCond' => 'FIELD:input_field:=:'.\EWW\Dpf\Domain\Model\MetadataObject::radio, |
|
| 297 | + 'linked_field_uid' => array ( |
|
| 298 | + 'displayCond' => 'FIELD:input_field:=:' . \EWW\Dpf\Domain\Model\MetadataObject::radio, |
|
| 299 | 299 | 'exclude' => 0, |
| 300 | 300 | 'exclude' => 0, |
| 301 | 301 | 'label' => 'Linked field', |
| 302 | - 'config' => array( |
|
| 302 | + 'config' => array ( |
|
| 303 | 303 | 'type' => 'input', |
| 304 | 304 | 'size' => 30, |
| 305 | 305 | 'eval' => 'trim', |
| 306 | 306 | ), |
| 307 | 307 | ), |
| 308 | - 'metadatagroup' => array( |
|
| 309 | - 'config' => array( |
|
| 308 | + 'metadatagroup' => array ( |
|
| 309 | + 'config' => array ( |
|
| 310 | 310 | 'type' => 'passthrough', |
| 311 | 311 | ), |
| 312 | 312 | ), |