mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-31 01:35:15 +02:00
Ivan - Create article and topic datastore [skip ci]
This commit is contained in:
parent
ee5d2b4ad1
commit
d227b3f34d
14
server/models/Article.php
Normal file
14
server/models/Article.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
class Article extends DataStore {
|
||||
const TABLE = 'article';
|
||||
|
||||
public function getProps() {
|
||||
return [
|
||||
'title',
|
||||
'content',
|
||||
'lastEdited',
|
||||
'position'
|
||||
];
|
||||
}
|
||||
}
|
14
server/models/Topic.php
Normal file
14
server/models/Topic.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
class Topic extends DataStore {
|
||||
const TABLE = 'topic';
|
||||
|
||||
public function getProps() {
|
||||
return [
|
||||
'name',
|
||||
'icon',
|
||||
'iconColor',
|
||||
'ownArticleList'
|
||||
];
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user