Lines Matching defs:handler
24 protected $handler;
35 * @param \Doku_Handler $handler Handling strategy by reference.
36 * @param string $start Starting handler.
39 public function __construct($handler, $start = "accept", $case = false)
42 $this->handler = $handler;
100 * parser handler for this token only.
115 * Adds a mapping from a mode to another handler.
118 * @param string $handler New target handler.
120 public function mapHandler($mode, $handler)
122 $this->mode_handlers[$mode] = $handler;
136 if (! isset($this->handler)) {
246 * Empty content will be ignored. The lexer has a parser handler for each mode in the lexer.
260 $handler = $this->modeStack->getCurrent();
261 if (isset($this->mode_handlers[$handler])) {
262 $handler = $this->mode_handlers[$handler];
266 // handler but with an additional parameter
267 if (str_starts_with($handler, 'plugin_')) {
268 [$handler, $plugin] = sexplode('_', $handler, 2, '');
269 return $this->handler->$handler($content, $is_match, $pos, $plugin);
272 return $this->handler->$handler($content, $is_match, $pos);