1 | <?php |
||
31 | class ParserHelper extends AppHelper |
||
32 | { |
||
33 | |||
34 | /** |
||
35 | * @var array these Helpers are also used in the Parser |
||
36 | */ |
||
37 | public $helpers = [ |
||
38 | 'MailObfuscator.MailObfuscator', |
||
39 | 'Geshi.Geshi', |
||
40 | 'Form', |
||
41 | 'Html', |
||
42 | 'Text', |
||
43 | 'Url', |
||
44 | //= usefull in Parsers |
||
45 | 'Layout', |
||
46 | 'SaitoHelp' |
||
47 | ]; |
||
48 | |||
49 | /** |
||
50 | * @var array parserCache for parsed markup |
||
51 | * |
||
52 | * Esp. useful for repeating signatures in long mix view threads |
||
53 | */ |
||
54 | protected $_parserCache = []; |
||
55 | |||
56 | /** @var MarkupInterface */ |
||
57 | protected $Markup; |
||
58 | |||
59 | /** |
||
60 | * {@inheritDoc} |
||
61 | */ |
||
62 | public function initialize(array $config) |
||
69 | |||
70 | /** |
||
71 | * {@inheritDoc} |
||
72 | */ |
||
73 | public function beforeRender($viewFile) |
||
79 | |||
80 | /** |
||
81 | * cite text |
||
82 | * |
||
83 | * @param string $string string |
||
84 | * @return string |
||
85 | */ |
||
86 | public function citeText($string) |
||
90 | |||
91 | /** |
||
92 | * get editor help |
||
93 | * |
||
94 | * @return mixed |
||
95 | */ |
||
96 | public function editorHelp() |
||
100 | |||
101 | /** |
||
102 | * get button set |
||
103 | * |
||
104 | * @return mixed |
||
105 | */ |
||
106 | public function getButtonSet() |
||
126 | |||
127 | /** |
||
128 | * parse |
||
129 | * |
||
130 | * @param string $string string |
||
131 | * @param array $options options |
||
132 | * @return string |
||
133 | */ |
||
134 | public function parse($string, array $options = []) |
||
160 | } |
||
161 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.