Lines Matching refs:tableCalls
7 protected $tableCalls = []; variable in dokuwiki\\Parsing\\Handler\\Table
48 $this->callWriter->writeCalls($this->tableCalls);
55 $this->tableCalls[] = ['table_open', $call[1], $call[2]];
56 $this->tableCalls[] = ['tablerow_open', [], $call[2]];
62 $this->tableCalls[] = ['table_close', $call[1], $call[2]];
68 $this->tableCalls[] = $call;
84 while ($discard = array_pop($this->tableCalls)) {
92 $this->tableCalls[] = ['tablerow_close', [], $call[2]];
117 $lastCall = end($this->tableCalls);
121 $this->tableCalls[] = ['colspan', [], $call[2]];
124 $this->tableCalls[] = [$this->lastCellType . '_close', [], $call[2]];
125 $this->tableCalls[] = [$call[0] . '_open', [1, null, 1], $call[2]];
128 $this->tableCalls[] = [$call[0] . '_open', [1, null, 1], $call[2]];
138 $this->tableCalls[] = $call;
145 if ($this->tableCalls[0][0] == 'table_open') {
147 $this->tableCalls[0][1][] = $this->maxCols - 1;
148 $this->tableCalls[0][1][] = $this->maxRows;
149 $this->tableCalls[0][1][] = array_shift($this->tableCalls[0][1]);
170 while (++$key < count($this->tableCalls)) {
171 $call = $this->tableCalls[$key];
176 … array_splice($this->tableCalls, $key + 1, 0, [['tablethead_open', [], $call[2]]]);
192 … $prev = in_array($this->tableCalls[$key - 1][0], ['tablecell_open', 'tableheader_open']);
193 … $next = in_array($this->tableCalls[$key + 1][0], ['tablecell_close', 'tableheader_close']);
196 $this->tableCalls[$key - 1][1][1] = 'left';
200 $this->tableCalls[$key - 1][1][1] = 'right';
204 if ($this->tableCalls[$cellKey[$lastRow][$lastCell]][1][1] == 'right') {
205 $this->tableCalls[$cellKey[$lastRow][$lastCell]][1][1] = 'center';
207 $this->tableCalls[$cellKey[$lastRow][$lastCell]][1][1] = 'left';
212 $this->tableCalls[$key][0] = 'cdata';
216 $this->tableCalls[$key - 1][1][0] = false;
220 $this->tableCalls[$i][0] == 'tablecell_open' ||
221 $this->tableCalls[$i][0] == 'tableheader_open'
223 if (false !== $this->tableCalls[$i][1][0]) {
224 $this->tableCalls[$i][1][0]++;
236 if ($this->tableCalls[$key - 1][0] == 'cdata') {
239 $this->tableCalls[$key][0] = 'cdata';
247 … $this->tableCalls[$cellKey[$i][$lastCell]][0] == 'tablecell_open' ||
248 … $this->tableCalls[$cellKey[$i][$lastCell]][0] == 'tableheader_open'
250 … if ($this->tableCalls[$cellKey[$i][$lastCell]][1][2] >= $lastRow - $i) {
260 $this->tableCalls[$key][0] = 'cdata';
261 $this->tableCalls[$key][1][0] = '';
264 $this->tableCalls[$cellKey[$spanning_cell][$lastCell]][1][2]++;
266 $this->tableCalls[$key - 1][1][2] = false;
284 array_splice($this->tableCalls, $key, 0, $moreCalls);
289 … array_splice($this->tableCalls, $key + 1, 0, [['tablethead_close', [], $call[2]]]);
296 $cnt = count($this->tableCalls);
298 if ($this->tableCalls[$key][0] == 'cdata') {
301 while ($this->tableCalls[$key][0] == 'cdata') {
302 $this->tableCalls[$ckey][1][0] .= $this->tableCalls[$key][1][0];
311 unset($this->tableCalls[$delete]);
313 $this->tableCalls = array_values($this->tableCalls);