Lines Matching refs:tableCalls

8     protected $tableCalls = array();  variable in dokuwiki\\Parsing\\Handler\\Table
54 $this->callWriter->writeCalls($this->tableCalls);
61 $this->tableCalls[] = array('table_open',$call[1],$call[2]);
62 $this->tableCalls[] = array('tablerow_open',array(),$call[2]);
68 $this->tableCalls[] = array('table_close',$call[1],$call[2]);
74 $this->tableCalls[] = $call;
90 while ($discard = array_pop($this->tableCalls)) {
98 $this->tableCalls[] = array('tablerow_close', array(), $call[2]);
123 $lastCall = end($this->tableCalls);
127 $this->tableCalls[] = array('colspan',array(),$call[2]);
130 $this->tableCalls[] = array($this->lastCellType.'_close',array(),$call[2]);
131 $this->tableCalls[] = array($call[0].'_open',array(1,null,1),$call[2]);
134 $this->tableCalls[] = array($call[0].'_open',array(1,null,1),$call[2]);
144 $this->tableCalls[] = $call;
151 if ($this->tableCalls[0][0] == 'table_open') {
153 $this->tableCalls[0][1][] = $this->maxCols - 1;
154 $this->tableCalls[0][1][] = $this->maxRows;
155 $this->tableCalls[0][1][] = array_shift($this->tableCalls[0][1]);
175 for ($key = 0; $key < count($this->tableCalls); ++$key) {
176 $call = $this->tableCalls[$key];
181 array_splice($this->tableCalls, $key+1, 0, array(
198 … $prev = in_array($this->tableCalls[$key-1][0], array('tablecell_open', 'tableheader_open'));
199 … $next = in_array($this->tableCalls[$key+1][0], array('tablecell_close', 'tableheader_close'));
202 $this->tableCalls[$key-1][1][1] = 'left';
206 $this->tableCalls[$key-1][1][1] = 'right';
210 if ($this->tableCalls[$cellKey[$lastRow][$lastCell]][1][1] == 'right') {
211 $this->tableCalls[$cellKey[$lastRow][$lastCell]][1][1] = 'center';
213 $this->tableCalls[$cellKey[$lastRow][$lastCell]][1][1] = 'left';
218 $this->tableCalls[$key][0] = 'cdata';
222 $this->tableCalls[$key-1][1][0] = false;
225 if ($this->tableCalls[$i][0] == 'tablecell_open' ||
226 $this->tableCalls[$i][0] == 'tableheader_open'
228 if (false !== $this->tableCalls[$i][1][0]) {
229 $this->tableCalls[$i][1][0]++;
241 if ($this->tableCalls[$key-1][0] == 'cdata') {
244 $this->tableCalls[$key][0] = 'cdata';
251 … if ($this->tableCalls[$cellKey[$i][$lastCell]][0] == 'tablecell_open' ||
252 … $this->tableCalls[$cellKey[$i][$lastCell]][0] == 'tableheader_open'
254 … if ($this->tableCalls[$cellKey[$i][$lastCell]][1][2] >= $lastRow - $i) {
264 $this->tableCalls[$key][0] = 'cdata';
265 $this->tableCalls[$key][1][0] = '';
268 $this->tableCalls[$cellKey[$spanning_cell][$lastCell]][1][2]++;
270 $this->tableCalls[$key-1][1][2] = false;
288 array_splice($this->tableCalls, $key, 0, $moreCalls);
293 array_splice($this->tableCalls, $key+1, 0, array(
301 $cnt = count($this->tableCalls);
303 if ($this->tableCalls[$key][0] == 'cdata') {
306 while ($this->tableCalls[$key][0] == 'cdata') {
307 $this->tableCalls[$ckey][1][0] .= $this->tableCalls[$key][1][0];
316 unset($this->tableCalls[$delete]);
318 $this->tableCalls = array_values($this->tableCalls);