/** * Emit a record. * * If the stream was not opened because 'delay' was specified in the * constructor, open it before calling the superclass's emit. */ function emit($record) { if ($this->stream == null) { $this->stream = $this->_open(); } parent::emit($record); }
function get_array() { $s = new StreamHandler($this->read_array(), false); echo "Got array of '" . $s->d . "'<br>\n"; $r = array(); $r['itype'] = 'array'; $as = array(); while ($s->l < strlen($s->d) - 1) { $c = $s->next_word(); if ($c == 'R') { $r[] = $as[0] . ' ' . $as[1] . ' R'; $as = array(); } else { $as[] = $c; } } if (count($as) > 0 && strlen(trim($as[0])) > 0) { $r = array_merge($r, $as); } return $r; }
public function getData() { $data = parent::getData(); $data["tempfileid"] = $this->getTempFile()->getTempFileID(); return $data; }