1 | <?php |
||
13 | class TermboxFlag { |
||
14 | |||
15 | private $settings; |
||
16 | |||
17 | private $extensionRegistry; |
||
18 | |||
19 | public const TERMBOX_FLAG = 'termboxEnabled'; |
||
20 | public const TERMBOX_DESKTOP_FLAG = 'termboxDesktopEnabled'; |
||
21 | |||
22 | public function __construct( |
||
29 | |||
30 | public static function getInstance() { |
||
36 | |||
37 | /** |
||
38 | * Determines whether the Termbox should be rendered |
||
39 | * |
||
40 | * @return bool |
||
41 | */ |
||
42 | public function shouldRenderTermbox() { |
||
48 | |||
49 | private function shouldRenderTermboxMobile(): bool { |
||
52 | |||
53 | private function isMobile(): bool { |
||
57 | |||
58 | private function shouldRenderTermboxDesktop(): bool { |
||
61 | |||
62 | } |
||
63 |