Lines Matching full:this

17         $last_call = end($this->calls);
18 $this->writeCall(['list_close', [], $last_call[2]]);
20 $this->process();
21 $this->callWriter->finalise();
22 unset($this->callWriter);
29 foreach ($this->calls as $call) {
32 $this->listOpen($call);
35 $this->listStart($call);
38 $this->listEnd($call);
41 $this->listContent($call);
46 $this->callWriter->writeCalls($this->listCalls);
47 return $this->callWriter;
52 $depth = $this->interpretSyntax($call[1][0], $listType);
54 $this->initialDepth = $depth;
56 $this->listStack[] = [$listType, $depth, 1];
58 $this->listCalls[] = ['list' . $listType . '_open', [], $call[2]];
59 $this->listCalls[] = ['listitem_open', [1], $call[2]];
60 $this->listCalls[] = ['listcontent_open', [], $call[2]];
68 while ($list = array_pop($this->listStack)) {
70 $this->listCalls[] = ['listcontent_close', [], $call[2]];
73 $this->listCalls[] = ['listitem_close', [], $call[2]];
74 $this->listCalls[] = ['list' . $list[0] . '_close', [], $call[2]];
80 $depth = $this->interpretSyntax($call[1][0], $listType);
81 $end = end($this->listStack);
82 $key = key($this->listStack);
85 if ($depth < $this->initialDepth) {
86 $depth = $this->initialDepth;
92 $this->listCalls[] = ['listcontent_close', [], $call[2]];
93 $this->listCalls[] = ['listitem_close', [], $call[2]];
94 $this->listCalls[] = ['listitem_open', [$depth - 1], $call[2]];
95 $this->listCalls[] = ['listcontent_open', [], $call[2]];
98 $this->listStack[$key][2] = count($this->listCalls) - 2;
102 $this->listCalls[] = ['listcontent_close', [], $call[2]];
103 $this->listCalls[] = ['listitem_close', [], $call[2]];
104 $this->listCalls[] = ['list' . $end[0] . '_close', [], $call[2]];
105 $this->listCalls[] = ['list' . $listType . '_open', [], $call[2]];
106 $this->listCalls[] = ['listitem_open', [$depth - 1], $call[2]];
107 $this->listCalls[] = ['listcontent_open', [], $call[2]];
109 array_pop($this->listStack);
110 $this->listStack[] = [$listType, $depth, count($this->listCalls) - 2];
113 $this->listCalls[] = ['listcontent_close', [], $call[2]];
114 $this->listCalls[] = ['list' . $listType . '_open', [], $call[2]];
115 $this->listCalls[] = ['listitem_open', [$depth - 1], $call[2]];
116 $this->listCalls[] = ['listcontent_open', [], $call[2]];
118 // set the node/leaf state of this item's parent listitem_open to NODE
119 $this->listCalls[$this->listStack[$key][2]][1][1] = self::NODE;
121 $this->listStack[] = [$listType, $depth, count($this->listCalls) - 2];
123 $this->listCalls[] = ['listcontent_close', [], $call[2]];
124 $this->listCalls[] = ['listitem_close', [], $call[2]];
125 $this->listCalls[] = ['list' . $end[0] . '_close', [], $call[2]];
128 array_pop($this->listStack);
131 $end = end($this->listStack);
132 $key = key($this->listStack);
138 $this->listCalls[] = ['listitem_close', [], $call[2]];
141 $this->listCalls[] = ['listitem_open', [$depth - 1], $call[2]];
142 $this->listCalls[] = ['listcontent_open', [], $call[2]];
145 $this->listStack[$key][2] = count($this->listCalls) - 2;
148 $this->listCalls[] = ['list' . $end[0] . '_close', [], $call[2]];
149 $this->listCalls[] = ['list' . $listType . '_open', [], $call[2]];
150 $this->listCalls[] = ['listitem_open', [$depth - 1], $call[2]];
151 $this->listCalls[] = ['listcontent_open', [], $call[2]];
153 array_pop($this->listStack);
154 $this->listStack[] = [$listType, $depth, count($this->listCalls) - 2];
161 $this->listCalls[] = ['listitem_close', [], $call[2]];
162 $this->listCalls[] = ['list' . $end[0] . '_close', [], $call[2]];
164 array_pop($this->listStack);
172 $this->listCalls[] = $call;
183 // but I don't think the number is seen outside this handler