1 | <?php |
||
7 | class PageKey |
||
8 | { |
||
9 | private static $excludedSources; |
||
10 | private $key; |
||
11 | |||
12 | 17 | public function __construct($key) |
|
18 | |||
19 | 1 | public static function fromString($key) |
|
23 | |||
24 | 12 | public static function fromLineKeyString($key) |
|
29 | |||
30 | 1 | public function get() |
|
34 | |||
35 | /** |
||
36 | * Get suggestion for a label based on the key |
||
37 | * |
||
38 | * @return string |
||
39 | */ |
||
40 | 1 | public function getAsLabel() |
|
44 | |||
45 | 13 | public function isExcludedSource() |
|
51 | |||
52 | 15 | private function sanitizeKey($key) |
|
56 | |||
57 | 17 | private function validateKey($key) |
|
63 | |||
64 | 13 | private function getExcludedSources() |
|
72 | |||
73 | 1 | public static function refreshExcludedSources() |
|
77 | |||
78 | } |
||
79 |