Lines Matching refs:this

26         foreach ($this->calls as $call) {
29 $this->tableStart($call);
32 $this->tableRowClose($call);
33 $this->tableRowOpen(['tablerow_open', $call[1], $call[2]]);
37 $this->tableCell($call);
40 $this->tableRowClose($call);
41 $this->tableEnd($call);
44 $this->tableDefault($call);
48 $this->callWriter->writeCalls($this->tableCalls);
50 return $this->callWriter;
55 $this->tableCalls[] = ['table_open', $call[1], $call[2]];
56 $this->tableCalls[] = ['tablerow_open', [], $call[2]];
57 $this->firstCell = true;
62 $this->tableCalls[] = ['table_close', $call[1], $call[2]];
63 $this->finalizeTable();
68 $this->tableCalls[] = $call;
69 $this->currentCols = 0;
70 $this->firstCell = true;
71 $this->lastCellType = 'tablecell';
72 $this->maxRows++;
73 if ($this->inTableHead) {
74 $this->currentRow = ['tablecell' => 0, 'tableheader' => 0];
80 if ($this->inTableHead && ($this->inTableHead = $this->isTableHeadRow())) {
81 $this->countTableHeadRows++;
84 while ($discard = array_pop($this->tableCalls)) {
88 if (!empty($this->currentRow[$discard[0]])) {
89 $this->currentRow[$discard[0]]--;
92 $this->tableCalls[] = ['tablerow_close', [], $call[2]];
94 if ($this->currentCols > $this->maxCols) {
95 $this->maxCols = $this->currentCols;
101 $td = $this->currentRow['tablecell'];
102 $th = $this->currentRow['tableheader'];
112 if ($this->inTableHead) {
113 $this->currentRow[$call[0]]++;
115 if (!$this->firstCell) {
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]];
126 $this->lastCellType = $call[0];
128 $this->tableCalls[] = [$call[0] . '_open', [1, null, 1], $call[2]];
129 $this->lastCellType = $call[0];
130 $this->firstCell = false;
133 $this->currentCols++;
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]);
161 if ($this->inTableHead) {
162 $this->inTableHead = false;
163 $this->countTableHeadRows = 0;
170 while (++$key < count($this->tableCalls)) {
171 $call = $this->tableCalls[$key];
175 if ($this->countTableHeadRows) {
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';
244 … if (!$this->countTableHeadRows || ($lastRow - 1 != $this->countTableHeadRows)) {
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;
277 while (++$lastCell < $this->maxCols) {
284 array_splice($this->tableCalls, $key, 0, $moreCalls);
288 if ($this->countTableHeadRows == $lastRow) {
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);