2016-10-03 21:44:41 +02:00
|
|
|
<?php
|
2017-04-21 05:34:20 +02:00
|
|
|
/**
|
|
|
|
* @api {OBJECT} CustomResponse CustomResponse
|
2018-09-20 22:19:47 +02:00
|
|
|
* @apiVersion 4.3.0
|
2017-04-21 05:34:20 +02:00
|
|
|
* @apiGroup Data Structures
|
|
|
|
* @apiParam {Number} id Id of the custom response.
|
|
|
|
* @apiParam {String} content Content of the custom response.
|
|
|
|
* @apiParam {String} name Name of the custom response.
|
|
|
|
* @apiParam {String} language Language of the custom response.
|
|
|
|
*/
|
2016-10-03 21:44:41 +02:00
|
|
|
|
|
|
|
class CustomResponse extends DataStore {
|
|
|
|
const TABLE = 'customresponse';
|
|
|
|
|
|
|
|
public static function getProps() {
|
|
|
|
return [
|
|
|
|
'name',
|
|
|
|
'language',
|
|
|
|
'content'
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
public function toArray() {
|
|
|
|
return [
|
2016-11-21 03:01:38 +01:00
|
|
|
'id' => $this->id,
|
2016-10-03 21:44:41 +02:00
|
|
|
'name' => $this->name,
|
|
|
|
'language' => $this->language,
|
|
|
|
'content' => $this->content,
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|