';
$renderer->doc .= '
'; //create table
foreach($matches as $page => $allTodosPerPage) {
$renderer->doc .= '' . $page . ' |
';
//entry 0 contains all whole matches
foreach($allTodosPerPage[0] as $todoindex => $todomatch) {
$x = preg_match('%]*)>(.*)[\W]*todo[\W]*>%i', $todomatch, $tododata);
if($x) {
list($checked, $todouser) = $this->parseTodoArgs($tododata[1]);
$todotitle = trim($tododata[2]);
if(empty($todotitle)) {
continue;
}
$renderer->doc .= '';
// in case of integration with searchpattern there is no chance to find the index of an element
$renderer->doc .= $this->createTodoItem($renderer, $todotitle, $todoindex, $todouser, $checked, $page, array('checkbox'=>'yes', 'username'=>'user'));
$renderer->doc .= ' |
';
}
}
}
$renderer->doc .= '
'; //end table
$renderer->doc .= '
';
// true means, that this handler method does the output (searchpattern plugin has nothing to do)
return true;
break;
case 'intable:whole':
break;
case 'intable:prefix':
//$renderer->doc .= '