Lines Matching +refs:text +refs:line
74 * @param string $match The text matched by the patterns
76 * @param int $pos The character position of the matched text
104 foreach ($lines as $line) {
106 $line = preg_replace('/(?<![&\\\\])#.*$/', '', $line);
107 $line = str_replace('\\#', '#', $line);
108 $line = trim($line);
109 if (empty($line)) continue;
110 $line = preg_split('/\s*:\s*/', $line, 2);
111 $line[0] = strtolower($line[0]);
114 // handle line commands (we allow various aliases here)
115 switch ($line[0]) {
120 $cols = explode(',', $line[1]);
129 $data['title'] = $line[1];
134 $cols = $this->parseValues($line[1]);
138 $cols = explode(',', $line[1]);
152 $cols = explode(',', $line[1]);
159 $data['min'] = abs((int)$line[1]);
163 $data['limit'] = abs((int)$line[1]);
167 $column = $this->dthlp->column($line[1]);
185 $flt = $this->dthlp->parseFilter($line[1]);
193 $data['page'] = cleanID($line[1]);
196 $data['dynfilters'] = (bool)$line[1];
199 $data['rownumbers'] = (bool)$line[1];
202 $data['summarize'] = (bool)$line[1];
205 $data['sepbyheaders'] = (bool)$line[1];
208 msg("data plugin: unknown option '" . hsc($line[0]) . "'", -1);
382 $text = '<div class="table dataaggregation">';
399 $text .= '<div class="filter">';
400 $text .= '<h4>' . sprintf($this->getLang('tablefilteredby'), hsc(implode(' & ', $fltrs))) . '</h4>';
401 $text .= '<div class="resetfilter">' .
404 $text .= '</div>';
407 $text .= '<table class="inline dataplugin_table ' . $data['classes'] . '">';
409 $text .= '<tr>';
412 $text .= '<th>#</th>';
422 $text .= '<th' . $width . '>';
427 $text .= '<span>↓</span> ';
430 $text .= '<span>↑</span> ';
435 $text .= '<a href="' . wl($ID, ['datasrt' => $ckey] + $cur_params) .
437 $text .= '</th>';
439 $text .= '</tr>';
443 $text .= '<tr class="dataflt">';
446 $text .= '<th></th>';
450 $text .= '<th>';
467 $form->addElement(form_makeField('text', $key, $val, ''));
468 $text .= $form->getForm();
469 $text .= '</th>';
471 $text .= '</tr>';
474 return $text;
505 $text = '';
508 $text .= '<tr>';
511 if ($data['rownumbers']) $text .= '<td></td>';
514 $text .= '<td class="' . $data['align'][$i] . 'align">';
516 $text .= '∑ ' . $this->sums[$i];
518 $text .= ' ';
520 $text .= '</td>';
522 $text .= '<tr>';
527 $text .= '<tr><th colspan="' . (count($data['cols']) + ($data['rownumbers'] ? 1 : 0)) . '">';
542 $text .= '<a href="' . wl($ID, $params) .
547 $text .= ' ';
559 $text .= '<a href="' . wl($ID, $params) .
563 $text .= '</th></tr>';
566 $text .= '</table></div>';
567 return $text;
760 * @param string $line
763 protected function parseValues($line)
770 $len = strlen($line);
772 if ($line[$i] == '"') {
779 if ($line[$i + 1] == '"') {
792 } elseif ($line[$i] == ',') {
806 $value .= $line[$i];