function Open(&$args = NULL) { if ($this->filewriter) { if ($args && $args['tmpfile']) { $this->tmpfile = $args['tmpfile']; } else { $this->tmpfile = GetTmpFile("adei_appfilter_", $this->GetExtension()); } } }
function Start(&$args = NULL) { parent::Start($args); if ($this->object->output) { $this->object->Open(); } else { if ($args && $args['extension']) { $this->filename = GetTmpFile("adei_stream_filewriter_", $args['extension']); } else { $this->filename = GetTmpFile("adei_stream_filewriter_"); } $this->object->Open($this->filename); } }
function SequenceStart($flags = 0) { parent::SequenceStart($flags); if (!$this->h || $this->h->stdout) { $this->tmpfile = false; $this->xls = new Spreadsheet_Excel_Writer(); } else { $this->tmpfile = GetTmpFile("adei_stream_excel_", "xls"); $this->xls = new Spreadsheet_Excel_Writer($this->tmpfile); } $this->xls_time_format = $this->xls->addFormat(); $this->xls_time_format->setNumFormat($this->time_format); if ($this->time_subsec_format) { $this->xls_time_subsec_format = $this->xls->addFormat(); $this->xls_time_subsec_format->setNumFormat($this->time_subsec_format); } $this->xls_data_format = $this->xls->addFormat(); $this->xls_data_format->setNumFormat($this->data_format); }
function GroupStart($title, $subseconds = false, $flags = 0) { switch ($this->type) { case self::TYPE_TDMS: $this->group_title = $title; $this->data = array(); break; case self::TYPE_ARRAY: $this->tmpfile = GetTmpFile("adei_stream_excel_", $this->extension); $this->hout = new IO($this->tmpfile); $this->hout->Open(); break; case self::TYPE_STREAMARRAY: $this->hout = $this->h; break; } parent::GroupStart($title, $subseconds, $flags); }