Skip to content

Commit

Permalink
add modul ConfigurationController
Browse files Browse the repository at this point in the history
  • Loading branch information
daffyduck82 committed Oct 31, 2021
1 parent 4b7547a commit 40690ec
Show file tree
Hide file tree
Showing 3 changed files with 266 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Classes/Module/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ function toggleDisplay(toggleId, e, countBox) { //
}

$this->content = $this->doc->startPage($this->getLanguageService()->getLL('title'));
$this->content.= $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers, array());
$this->content.= $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers, []);
} else {
// If no access or if ID == zero

Expand Down Expand Up @@ -307,7 +307,7 @@ public function printContent()
*/
protected function moduleContent()
{
$configArray[1] = array(
$configArray[1] = [
'box-1' => $this->getLanguageService()->getLL('configure_default_headers'),
'from_email' => array('string', DirectMailUtility::fName('from_email'), $this->getLanguageService()->getLL('from_email.description') . '<br />' . $this->getLanguageService()->getLL('from_email.details')),
'from_name' => array('string', DirectMailUtility::fName('from_name'), $this->getLanguageService()->getLL('from_name.description') . '<br />' . $this->getLanguageService()->getLL('from_name.details')),
Expand All @@ -316,7 +316,7 @@ protected function moduleContent()
'return_path' => array('string', DirectMailUtility::fName('return_path'), $this->getLanguageService()->getLL('return_path.description') . '<br />' . $this->getLanguageService()->getLL('return_path.details')),
'organisation' => array('string', DirectMailUtility::fName('organisation'), $this->getLanguageService()->getLL('organisation.description') . '<br />' . $this->getLanguageService()->getLL('organisation.details')),
'priority' => array('select', DirectMailUtility::fName('priority'), $this->getLanguageService()->getLL('priority.description') . '<br />' . $this->getLanguageService()->getLL('priority.details'), array(3 => $this->getLanguageService()->getLL('configure_priority_normal'), 1 => $this->getLanguageService()->getLL('configure_priority_high'), 5 => $this->getLanguageService()->getLL('configure_priority_low'))),
);
];
$configArray[2] = array(
'box-2' => $this->getLanguageService()->getLL('configure_default_content'),
'sendOptions' => array('select', DirectMailUtility::fName('sendOptions'), $this->getLanguageService()->getLL('sendOptions.description') . '<br />' . $this->getLanguageService()->getLL('sendOptions.details'), array(3 => $this->getLanguageService()->getLL('configure_plain_and_html') ,1 => $this->getLanguageService()->getLL('configure_plain_only') ,2 => $this->getLanguageService()->getLL('configure_html_only'))),
Expand Down
Loading

0 comments on commit 40690ec

Please sign in to comment.