Lines Matching +full:restore +full:- +full:keys

16     msg('datatemplate: Cannot find Data plugin.', -1);
34 $this->dtc = new datatemplate_cache($this->dthlp);
41 $this->Lexer->addSpecialPattern('----+ *datatemplatelist(?: [ a-zA-Z0-9_]*)?-+\n.*?\n----+',
99 // Restore removed fields
114 $sql = $this->_buildSQL($data);
118 $this->dtc->removeMeta($R);
122 $R->info['cache'] = false;
123 $this->dtc->checkAndBuildCache($data, $sql, $this);
132 $datarows = $this->dtc->getData($sql);
133 $datarows = $this->_match_filters($data, $datarows);
142 if($i - 1 < $_REQUEST['dataofs']) continue;
150 $this->nullList($data, $clist = array(), $R);
156 $R->doc .= $this->_renderPagination($data, count($datarows));
157 $this->_renderTemplate($wikipage[0], $data, $rows, $R);
158 $R->doc .= $this->_renderPagination($data, count($datarows));
182 $R->doc .= '<div class="datatemplatelist"> No permissions to view the template </div>';
190 $R->doc .= '<div class="datatemplatelist">';
191 $R->doc .= "Template {$wikipage} not found. ";
192 $R->internalLink($wikipage, '[Click here to create it]');
193 $R->doc .= '</div>';
199 // Construct replacement keys
201 $replacers['keys'][] = "@@" . $head . "@@";
209 $R->doc .= "<div class=\"${data['classes']}\">";
219 foreach($replacers['keys'] as $key) {
226 … $replacers['vals_id'][$i][] = $this->dthlp->_formatData($data['cols'][$clist[$num]], $cval, $R);
231 // Now mark all remaining keys with an index
232 $rawPart = str_replace($replacers['keys'], $replacers['keys_id'][$i], $rawPart);
242 '#<!-- SECTION \[(\d*-\d*)\] -->#e',
253 …te plugin: Use of @@Page@@ in '{$wikipage}' is deprecated. Replace it by @@%title%@@ please.", -1);
259 $R->doc .= $text;
260 $R->doc .= '</div>';
279 $params = $this->dthlp->_a2ua('dataflt',$_REQUEST['dataflt']);
283 $prev = $offset - $data['limit'];
290 '" title="'.$this->getLang('prevpage').
291 '" class="prev">'.'&larr; '.$this->getLang('prevpage').'</a>';
293 $text .= '<span class="prev disabled">&larr; '.$this->getLang('prevpage').'</span>';
297 $offs = ($i - 1) * $data['limit'];
303 if($numrows - $offset > $data['limit']){
310 '" title="'.$this->getLang('nextpage').
311 '" class="next">'.$this->getLang('nextpage').' &rarr;'.'</a>';
313 $text .= '<span class="next disabled">'.$this->getLang('nextpage').' &rarr;</span>';
329 * - generate keys
330 * - treat multi-value columns specially, i.e. add 's' to key and look at individual values
333 $keys = array();
335 $keys[$v] = $k;
337 $filters = $this->dthlp->_get_filters();
344 $cols = array_keys($keys);
352 $idx = $keys[$col];
355 $comp = $this->_match_wildcard($f['value'], $datarow[$idx]);
358 $comp = !$this->_match_wildcard($f['value'], $datarow[$idx]);
394 $R->doc .= '<div class="templatelist">Nothing.</div>';
398 /* c-basic-offset: 4 */