opensupports/server/models/Staff.php

29 lines
549 B
PHP
Raw Normal View History

2016-09-24 21:26:37 +02:00
<?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);
}
}