コード例 #1
0
ファイル: filter.php プロジェクト: nicolaisi/adei
 function Open(&$args = NULL)
 {
     if ($this->filewriter) {
         if ($args && $args['tmpfile']) {
             $this->tmpfile = $args['tmpfile'];
         } else {
             $this->tmpfile = GetTmpFile("adei_appfilter_", $this->GetExtension());
         }
     }
 }
コード例 #2
0
ファイル: streamfilewriter.php プロジェクト: nicolaisi/adei
 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);
     }
 }
コード例 #3
0
ファイル: excel.php プロジェクト: nicolaisi/adei
 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);
 }
コード例 #4
0
ファイル: labview.php プロジェクト: nicolaisi/adei
 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);
 }