30 lines
623 B
PHP
30 lines
623 B
PHP
<?php
|
|
|
|
class Ticket extends DataStore {
|
|
const TABLE = 'tickets';
|
|
|
|
public static function getProps() {
|
|
return array(
|
|
'ticketId',
|
|
'title',
|
|
'content',
|
|
'language',
|
|
'department',
|
|
'file',
|
|
'date',
|
|
'unread',
|
|
'closed',
|
|
'author',
|
|
'owner',
|
|
'ownComments'
|
|
);
|
|
}
|
|
|
|
public static function getTicket($value, $property = 'id') {
|
|
return parent::getDataStore($value, $property);
|
|
}
|
|
|
|
protected function getDefaultProps() {
|
|
return array();
|
|
}
|
|
} |