Lines Matching defs:call

31         foreach ($this->calls as $call) {
32 switch ($call[0]) {
34 $this->tableStart($call);
37 $this->tableRowClose($call);
38 $this->tableRowOpen(['tablerow_open', $call[1], $call[2]]);
42 $this->tableCell($call);
45 $this->tableRowClose($call);
46 $this->tableEnd($call);
49 $this->tableDefault($call);
58 protected function tableStart($call)
60 $this->tableCalls[] = ['table_open', $call[1], $call[2]];
61 $this->tableCalls[] = ['tablerow_open', [], $call[2]];
65 protected function tableEnd($call)
67 $this->tableCalls[] = ['table_close', $call[1], $call[2]];
71 protected function tableRowOpen($call)
73 $this->tableCalls[] = $call;
83 protected function tableRowClose($call)
97 $this->tableCalls[] = ['tablerow_close', [], $call[2]];
115 protected function tableCell($call)
118 $this->currentRow[$call[0]]++;
124 // A cell call which follows an open cell means an empty cell so span
126 $this->tableCalls[] = ['colspan', [], $call[2]];
129 $this->tableCalls[] = [$this->lastCellType . '_close', [], $call[2]];
130 $this->tableCalls[] = [$call[0] . '_open', [1, null, 1], $call[2]];
131 $this->lastCellType = $call[0];
133 $this->tableCalls[] = [$call[0] . '_open', [1, null, 1], $call[2]];
134 $this->lastCellType = $call[0];
141 protected function tableDefault($call)
143 $this->tableCalls[] = $call;
156 trigger_error('First element in table call list is not table_open');
176 $call = $this->tableCalls[$key];
178 switch ($call[0]) {
181 array_splice($this->tableCalls, $key + 1, 0, [['tablethead_open', [], $call[2]]]);
242 // ignore rowspan if previous call was cdata (text mixed with :::)
243 // we don't have to check next call as that wont match regex
283 $moreCalls[] = ['tablecell_open', [1, null, 1], $call[2]];
284 $moreCalls[] = ['cdata', [''], $call[2]];
285 $moreCalls[] = ['tablecell_close', [], $call[2]];
294 array_splice($this->tableCalls, $key + 1, 0, [['tablethead_close', [], $call[2]]]);