$methodName, 'params' => $args); $this->calls[] = $struct; return (count($this->calls) - 1); } function multiquery() { $result = array(); if(count($this->calls)) { $result = parent::query('system.multicall', $this->calls); $this->calls = array(); // reset for next calls } return $result; } function multiqueryIgnoreResult() { if(count($this->calls)) { parent::queryIgnoreResult('system.multicall', $this->calls); $this->calls = array(); // reset for next calls } } } ?>