mirror of
https://github.com/opensupports/opensupports.git
synced 2025-09-26 11:29:05 +02:00
29 lines
549 B
PHP
29 lines
549 B
PHP
<?php
|
|
|
|
class Staff extends DataStore {
|
|
const TABLE = 'staff';
|
|
|
|
|
|
public static function getProps() {
|
|
return [
|
|
'name',
|
|
'email',
|
|
'password',
|
|
'profilePic',
|
|
'level',
|
|
'sharedDepartmentList',
|
|
'sharedTicketList'
|
|
];
|
|
}
|
|
|
|
public function getDefaultProps() {
|
|
return [
|
|
'level' => 1
|
|
];
|
|
}
|
|
|
|
public static function getUser($value, $property = 'id') {
|
|
return parent::getDataStore($value, $property);
|
|
}
|
|
}
|