org -> unit change, some new functionality

This commit is contained in:
Dennis Eichhorn 2023-01-26 21:54:13 +01:00
parent 8479290a99
commit 37aac002ae
4 changed files with 29 additions and 1 deletions

View File

@ -99,6 +99,16 @@
"type": "TEXT", "type": "TEXT",
"null": false "null": false
}, },
"survey_template_l11n_footer": {
"name": "survey_template_l11n_footer",
"type": "TEXT",
"null": false
},
"survey_template_l11n_footer_plain": {
"name": "survey_template_l11n_footer_plain",
"type": "TEXT",
"null": false
},
"survey_template_l11n_template": { "survey_template_l11n_template": {
"name": "survey_template_l11n_template", "name": "survey_template_l11n_template",
"type": "INT", "type": "INT",

View File

@ -74,6 +74,22 @@ class SurveyTemplateL11n implements \JsonSerializable
*/ */
public string $descriptionPlain = ''; public string $descriptionPlain = '';
/**
* Description.
*
* @var string
* @since 1.0.0
*/
public string $footer = '';
/**
* Description.
*
* @var string
* @since 1.0.0
*/
public string $footerPlain = '';
/** /**
* Constructor. * Constructor.
* *

View File

@ -37,6 +37,8 @@ final class SurveyTemplateL11nMapper extends DataMapperFactory
'survey_template_l11n_title' => ['name' => 'survey_template_l11n_title', 'type' => 'string', 'internal' => 'title', 'autocomplete' => true], 'survey_template_l11n_title' => ['name' => 'survey_template_l11n_title', 'type' => 'string', 'internal' => 'title', 'autocomplete' => true],
'survey_template_l11n_description' => ['name' => 'survey_template_l11n_description', 'type' => 'string', 'internal' => 'description'], 'survey_template_l11n_description' => ['name' => 'survey_template_l11n_description', 'type' => 'string', 'internal' => 'description'],
'survey_template_l11n_description_plain' => ['name' => 'survey_template_l11n_description_plain', 'type' => 'string', 'internal' => 'descriptionPlain'], 'survey_template_l11n_description_plain' => ['name' => 'survey_template_l11n_description_plain', 'type' => 'string', 'internal' => 'descriptionPlain'],
'survey_template_l11n_footer' => ['name' => 'survey_template_l11n_footer', 'type' => 'string', 'internal' => 'footer'],
'survey_template_l11n_footer_plain' => ['name' => 'survey_template_l11n_footer_plain', 'type' => 'string', 'internal' => 'footerPlain'],
'survey_template_l11n_template' => ['name' => 'survey_template_l11n_template', 'type' => 'int', 'internal' => 'template'], 'survey_template_l11n_template' => ['name' => 'survey_template_l11n_template', 'type' => 'int', 'internal' => 'template'],
'survey_template_l11n_language' => ['name' => 'survey_template_l11n_language', 'type' => 'string', 'internal' => 'language'], 'survey_template_l11n_language' => ['name' => 'survey_template_l11n_language', 'type' => 'string', 'internal' => 'language'],
]; ];

View File

@ -59,7 +59,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
}; };
$this->app->dbPool = $GLOBALS['dbpool']; $this->app->dbPool = $GLOBALS['dbpool'];
$this->app->orgId = 1; $this->app->unitId = 1;
$this->app->accountManager = new AccountManager($GLOBALS['session']); $this->app->accountManager = new AccountManager($GLOBALS['session']);
$this->app->appSettings = new CoreSettings(); $this->app->appSettings = new CoreSettings();
$this->app->moduleManager = new ModuleManager($this->app, __DIR__ . '/../../../../Modules/'); $this->app->moduleManager = new ModuleManager($this->app, __DIR__ . '/../../../../Modules/');