1 | <?php |
||
37 | class BrowserHandler extends HandlerAbstract |
||
38 | { |
||
39 | /** |
||
40 | * cached messages |
||
41 | * |
||
42 | * @static |
||
43 | * @var string[] |
||
44 | * @access protected |
||
45 | */ |
||
46 | protected static $messages = []; |
||
47 | |||
48 | /** |
||
49 | * {@inheritDoc} |
||
50 | * |
||
51 | * @since 2.0.1 removed level param |
||
52 | */ |
||
53 | public function __construct( |
||
66 | |||
67 | /** |
||
68 | * {@inheritDoc} |
||
69 | */ |
||
70 | protected function write(LogEntryInterface $logEntry) |
||
75 | |||
76 | /** |
||
77 | * Only if not in CLI mode |
||
78 | * |
||
79 | * {@inheritDoc} |
||
80 | */ |
||
81 | protected function isHandling(LogEntryInterface $logEntry)/*# : bool */ |
||
85 | |||
86 | /** |
||
87 | * flush the messages to browser by adding to HTML page |
||
88 | * |
||
89 | * @return void |
||
90 | * @access public |
||
91 | * @static |
||
92 | * @api |
||
93 | */ |
||
94 | public static function flush() |
||
101 | |||
102 | /** |
||
103 | * Is 'X-BrowserHandler' header set ? |
||
104 | * |
||
105 | * @return bool |
||
106 | * @access protected |
||
107 | * @static |
||
108 | */ |
||
109 | protected static function hasHttpHeader()/*# : bool */ |
||
118 | |||
119 | /** |
||
120 | * Generate the javascript with spooled messages |
||
121 | * |
||
122 | * @return string |
||
123 | * @access protected |
||
124 | */ |
||
125 | protected static function generateScript()/*# : string */ |
||
134 | } |
||
135 |