2016-10-03 21:44:41 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
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,
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|