opensupports/server/models/CustomResponse.php

31 lines
786 B
PHP
Raw Normal View History

<?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.
*/
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,
'name' => $this->name,
'language' => $this->language,
'content' => $this->content,
];
}
}