blob: 78b9994e5974b86448bb77e335fd88a1945347e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<?php
/**
* CacheType.php
* model class for registered cache types
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* @author Thomas Hackl <studip@thomas-hackl.name>
* @copyright 2020 Stud.IP Core-Group
* @license http://www.gnu.org/licenses/gpl-2.0.html GPL version 2
* @category Stud.IP
*
* @property string cache_id database column
* @property string class_name database column
* @property string display_name database column
* @property int mkdate database column
* @property int chdate database column
*/
class CacheType extends SimpleORMap
{
protected static function configure($config = [])
{
$config['db_table'] = 'cache_types';
$config['additional_fields']['display_name'] = true;
parent::configure($config);
}
public function getDisplay_name(): string
{
return $this->class_name::getDisplayName();
}
}
|