| @@ 484-498 (lines=15) @@ | ||
| 481 | /** |
|
| 482 | * @return string |
|
| 483 | */ |
|
| 484 | protected function getIcon() |
|
| 485 | { |
|
| 486 | $moduleConfiguration = $this->getExistingMainConfiguration(); |
|
| 487 | ||
| 488 | ||
| 489 | if ($this->icon) { |
|
| 490 | $icon = $this->icon; |
|
| 491 | } elseif ($moduleConfiguration['icon']) { // existing configuration may override. |
|
| 492 | $icon = $moduleConfiguration['icon']; |
|
| 493 | } else { |
|
| 494 | $icon = ''; //default value. |
|
| 495 | } |
|
| 496 | ||
| 497 | return $icon; |
|
| 498 | } |
|
| 499 | ||
| 500 | /** |
|
| 501 | * @param string $mainModule |
|
| @@ 535-547 (lines=13) @@ | ||
| 532 | /** |
|
| 533 | * @return string |
|
| 534 | */ |
|
| 535 | protected function getModuleLanguageFile() |
|
| 536 | { |
|
| 537 | $moduleConfiguration = $this->getExistingMainConfiguration(); |
|
| 538 | ||
| 539 | if ($this->moduleLanguageFile !== null) { |
|
| 540 | $moduleLanguageFile = $this->moduleLanguageFile; |
|
| 541 | } elseif ($moduleConfiguration['moduleLanguageFile']) { // existing configuration may override. |
|
| 542 | $moduleLanguageFile = $moduleConfiguration['moduleLanguageFile']; |
|
| 543 | } else { |
|
| 544 | $moduleLanguageFile = 'LLL:EXT:vidi/Resources/Private/Language/locallang_module.xlf'; //default value. |
|
| 545 | } |
|
| 546 | return $moduleLanguageFile; |
|
| 547 | } |
|
| 548 | ||
| 549 | /** |
|
| 550 | * @param string $position |
|
| @@ 962-974 (lines=13) @@ | ||
| 959 | /** |
|
| 960 | * @return string |
|
| 961 | */ |
|
| 962 | protected function getAccess() |
|
| 963 | { |
|
| 964 | $moduleConfiguration = $this->getExistingMainConfiguration(); |
|
| 965 | ||
| 966 | if ($this->access !== null) { |
|
| 967 | $access = $this->access; |
|
| 968 | } elseif ($moduleConfiguration['access']) { // existing configuration may override. |
|
| 969 | $access = $moduleConfiguration['access']; |
|
| 970 | } else { |
|
| 971 | $access = Access::USER; //default value. |
|
| 972 | } |
|
| 973 | return $access; |
|
| 974 | } |
|
| 975 | ||
| 976 | /** |
|
| 977 | * @param string $access |
|