1 | <?php |
||
7 | class Doku_Renderer_code extends Doku_Renderer { |
||
8 | protected $_codeblock = 0; |
||
9 | |||
10 | /** |
||
11 | * Send the wanted code block to the browser |
||
12 | * |
||
13 | * When the correct block was found it exits the script. |
||
14 | * |
||
15 | * @param string $text |
||
16 | * @param string $language |
||
17 | * @param string $filename |
||
18 | */ |
||
19 | public function code($text, $language = null, $filename = '') { |
||
42 | |||
43 | /** |
||
44 | * Wraps around code() |
||
45 | * |
||
46 | * @param string $text |
||
47 | * @param string $language |
||
48 | * @param string $filename |
||
49 | */ |
||
50 | public function file($text, $language = null, $filename = '') { |
||
53 | |||
54 | /** |
||
55 | * This should never be reached, if it is send a 404 |
||
56 | */ |
||
57 | public function document_end() { |
||
62 | |||
63 | /** |
||
64 | * Return the format of the renderer |
||
65 | * |
||
66 | * @returns string 'code' |
||
67 | */ |
||
68 | public function getFormat() { |
||
71 | } |
||
72 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: