gitlab_medici/app/enum/EPageLimit.php @ b81f638d
1 |
<?php
|
---|---|
2 |
|
3 |
namespace App\Enum; |
4 |
|
5 |
|
6 |
class EPageLimit |
7 |
{
|
8 |
const LIMIT_1 = 1; |
9 |
const LIMIT_2 = 2; |
10 |
const LIMIT_3 = 3; |
11 |
const LIMIT_5 = 5; |
12 |
const LIMIT_10 = 10; |
13 |
const LIMIT_15 = 15; |
14 |
const LIMIT_30 = 30; |
15 |
|
16 |
public static $limits = [ |
17 |
self::LIMIT_1, |
18 |
self::LIMIT_2, |
19 |
self::LIMIT_3, |
20 |
self::LIMIT_5, |
21 |
self::LIMIT_10, |
22 |
self::LIMIT_15, |
23 |
self::LIMIT_30 |
24 |
];
|
25 |
|
26 |
public static $selectValues = [ |
27 |
self::LIMIT_1 => '1', |
28 |
self::LIMIT_2 => '2', |
29 |
self::LIMIT_3 => '3', |
30 |
self::LIMIT_5 => '5', |
31 |
self::LIMIT_10 => '10', |
32 |
self::LIMIT_15 => '15', |
33 |
self::LIMIT_30 => '30' |
34 |
];
|
35 |
|
36 |
public static $defaultLimit = self::LIMIT_5; |
37 |
}
|