mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-16 08:28:42 +00:00
Re-format mappers
This commit is contained in:
parent
a84a419261
commit
3f1571fba3
|
|
@ -30,8 +30,8 @@ class BadgeMapper extends DataMapperAbstract
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
static protected $columns = [
|
static protected $columns = [
|
||||||
'news_badge_id' => ['name' => 'news_badge_id', 'type' => 'int', 'internal' => 'id'],
|
'news_badge_id' => ['name' => 'news_badge_id', 'type' => 'int', 'internal' => 'id'],
|
||||||
'news_badge_title' => ['name' => 'news_badge_title', 'type' => 'string', 'internal' => 'title'],
|
'news_badge_title' => ['name' => 'news_badge_title', 'type' => 'string', 'internal' => 'title'],
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ class NewsArticleMapper extends DataMapperAbstract
|
||||||
'news_created_by' => ['name' => 'news_created_by', 'type' => 'int', 'internal' => 'createdBy'],
|
'news_created_by' => ['name' => 'news_created_by', 'type' => 'int', 'internal' => 'createdBy'],
|
||||||
'news_publish' => ['name' => 'news_publish', 'type' => 'DateTime', 'internal' => 'publish'],
|
'news_publish' => ['name' => 'news_publish', 'type' => 'DateTime', 'internal' => 'publish'],
|
||||||
'news_title' => ['name' => 'news_title', 'type' => 'string', 'internal' => 'title'],
|
'news_title' => ['name' => 'news_title', 'type' => 'string', 'internal' => 'title'],
|
||||||
'news_plain' => ['name' => 'news_plain', 'type' => 'string', 'internal' => 'plain'],
|
'news_plain' => ['name' => 'news_plain', 'type' => 'string', 'internal' => 'plain'],
|
||||||
'news_content' => ['name' => 'news_content', 'type' => 'string', 'internal' => 'content'],
|
'news_content' => ['name' => 'news_content', 'type' => 'string', 'internal' => 'content'],
|
||||||
'news_lang' => ['name' => 'news_lang', 'type' => 'string', 'internal' => 'language'],
|
'news_lang' => ['name' => 'news_lang', 'type' => 'string', 'internal' => 'language'],
|
||||||
'news_status' => ['name' => 'news_status', 'type' => 'int', 'internal' => 'status'],
|
'news_status' => ['name' => 'news_status', 'type' => 'int', 'internal' => 'status'],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user