Lines Matching refs:var

79         $var = $fspec['var'];
80 if (isset($vals[$var])) {
81 $this->$var = $vals[$var];
97 private function _readMap(&$var, $spec, $input) argument
113 $var = array();
158 $var[$key] = $val;
165 private function _readList(&$var, $spec, $input, $set=false) argument
175 $var = array();
206 $var[$elem] = true;
208 $var []= $elem;
234 $var = $fspec['var'];
239 $xfer += $input->$func($this->$var);
244 $this->$var = new $class();
245 $xfer += $this->$var->read($input);
248 $xfer += $this->_readMap($this->$var, $fspec, $input);
251 $xfer += $this->_readList($this->$var, $fspec, $input, false);
254 $xfer += $this->_readList($this->$var, $fspec, $input, true);
271 private function _writeMap($var, $spec, $output) argument
287 $xfer += $output->writeMapBegin($ktype, $vtype, count($var));
288 foreach ($var as $key => $val) {
331 private function _writeList($var, $spec, $output, $set=false) argument
342 $xfer += $output->writeSetBegin($etype, count($var));
344 $xfer += $output->writeListBegin($etype, count($var));
346 foreach ($var as $key => $val) {
381 $var = $fspec['var'];
382 if ($this->$var !== null) {
384 $xfer += $output->writeFieldBegin($var, $ftype, $fid);
387 $xfer += $output->$func($this->$var);
391 $xfer += $this->$var->write($output);
394 $xfer += $this->_writeMap($this->$var, $fspec, $output);
397 $xfer += $this->_writeList($this->$var, $fspec, $output, false);
400 $xfer += $this->_writeList($this->$var, $fspec, $output, true);
440 $var = $fspec['var'];
441 if (isset($vals[$var])) {
442 $this->$var = $vals[$var];
448 private function _readMap(&$var, $spec, $input) argument
464 $var = array();
509 $var[$key] = $val;
516 private function _readList(&$var, $spec, $input, $set=false) argument
526 $var = array();
557 $var[$elem] = true;
559 $var []= $elem;
585 $var = $fspec['var'];
590 $xfer += $input->$func($this->$var);
595 $this->$var = new $class();
596 $xfer += $this->$var->read($input);
599 $xfer += $this->_readMap($this->$var, $fspec, $input);
602 $xfer += $this->_readList($this->$var, $fspec, $input, false);
605 $xfer += $this->_readList($this->$var, $fspec, $input, true);
622 private function _writeMap($var, $spec, $output) argument
638 $xfer += $output->writeMapBegin($ktype, $vtype, count($var));
639 foreach ($var as $key => $val) {
682 private function _writeList($var, $spec, $output, $set=false) argument
693 $xfer += $output->writeSetBegin($etype, count($var));
695 $xfer += $output->writeListBegin($etype, count($var));
697 foreach ($var as $key => $val) {
732 $var = $fspec['var'];
733 if ($this->$var !== null) {
735 $xfer += $output->writeFieldBegin($var, $ftype, $fid);
738 $xfer += $output->$func($this->$var);
742 $xfer += $this->$var->write($output);
745 $xfer += $this->_writeMap($this->$var, $fspec, $output);
748 $xfer += $this->_writeList($this->$var, $fspec, $output, false);
751 $xfer += $this->_writeList($this->$var, $fspec, $output, true);