impl. more static translations

This commit is contained in:
Dennis Eichhorn 2021-02-12 18:01:52 +01:00
parent 552a86345e
commit ee8e8dc597
3 changed files with 46 additions and 4 deletions

View File

@ -9,8 +9,23 @@
"primary": true,
"autoincrement": true
},
"comments_list_status": {
"name": "comments_list_status",
"comments_list_active": {
"name": "comments_list_active",
"type": "TINYINT",
"null": false
},
"comments_list_allow_comment": {
"name": "comments_list_allow_comment",
"type": "TINYINT",
"null": false
},
"comments_list_allow_voting": {
"name": "comments_list_allow_voting",
"type": "TINYINT",
"null": false
},
"comments_list_allow_edit": {
"name": "comments_list_allow_edit",
"type": "TINYINT",
"null": false
}

View File

@ -46,7 +46,31 @@ class CommentList
* @var bool
* @since 1.0.0
*/
protected bool $isActive = true;
public bool $isActive = true;
/**
* Is active
*
* @var bool
* @since 1.0.0
*/
public bool $allowComment = true;
/**
* Is active
*
* @var bool
* @since 1.0.0
*/
public bool $allowVoting = true;
/**
* Is active
*
* @var bool
* @since 1.0.0
*/
public bool $allowEdit = true;
/**
* Get id.

View File

@ -34,7 +34,10 @@ final class CommentListMapper extends DataMapperAbstract
*/
protected static array $columns = [
'comments_list_id' => ['name' => 'comments_list_id', 'type' => 'int', 'internal' => 'id'],
'comments_list_status' => ['name' => 'comments_list_status', 'type' => 'bool', 'internal' => 'isActive'],
'comments_list_active' => ['name' => 'comments_list_active', 'type' => 'bool', 'internal' => 'isActive'],
'comments_list_allow_comment' => ['name' => 'comments_list_allow_comment', 'type' => 'bool', 'internal' => 'allowComment'],
'comments_list_allow_voting' => ['name' => 'comments_list_allow_voting', 'type' => 'bool', 'internal' => 'allowVoting'],
'comments_list_allow_edit' => ['name' => 'comments_list_allow_edit', 'type' => 'bool', 'internal' => 'allowEdit'],
];
/**