Lines Matching defs:calls
12 protected $calls = [];
61 $this->calls[] = ['p_open', [], $pos];
80 $ccount = count($this->calls);
82 if ($this->calls[$i][0] == 'p_open') {
84 } elseif ($this->calls[$i][0] == 'cdata') {
85 $content .= $this->calls[$i][1][0];
94 //array_splice($this->calls,$i); // <- this is much slower than the loop below
98 ) array_pop($this->calls);
101 $i = count($this->calls) - 1;
102 if ($this->calls[$i][0] == 'cdata') $this->calls[$i][1][0] = rtrim($this->calls[$i][1][0], "\n");
103 $this->calls[] = ['p_close', [], $pos];
112 $key = count($this->calls);
113 if ($key && $call[0] == 'cdata' && $this->calls[$key - 1][0] == 'cdata') {
114 $this->calls[$key - 1][1][0] .= $call[1][0];
116 $this->calls[] = $call;
123 $this->calls[] = $call;
132 * @param array $calls
136 public function process($calls)
140 foreach ($calls as $key => $call) {
182 if (isset($calls[$key + 1]) && $calls[$key + 1][0] == 'eol') {
197 $call = end($this->calls);
199 return $this->calls;