Lines Matching defs:handler
73 public function handle($match, $state, $pos, Doku_Handler $handler)
138 // do same as parser::handler->header()
139 if ($this->getSectionState($handler)) $this->addCall($handler, 'section_close', [], $pos);
142 $handler->addPluginCall(substr(get_class($this), 14), $data, $state, $pos, $match);
143 $this->addCall($handler, 'section_open', [$level], $pos);
144 $this->setSectionState($handler, true);
157 // are converted to normal headers in PARSER_HANDLER_DONE event handler
163 // add a new call using CallWriter of the handler object
164 private function addCall(Doku_Handler $handler, $method, $args, $pos)
166 if (method_exists($handler, 'addCall')) {
168 $handler->addCall($method, $args, $pos);
171 $handler->_addCall($method, $args, $pos);
175 // get section status of the handler object
176 private function getSectionstate(Doku_Handler $handler)
178 if (method_exists($handler, 'getStatus')) {
179 return $handler->getStatus('section');
181 return $handler->status['section'];
185 // set section status of the handler object
186 private function setSectionstate(Doku_Handler $handler, $value)
188 if (method_exists($handler, 'setStatus')) {
189 $handler->setStatus('section', $value);
191 $handler->status['section'] = $value;