23require_once
'OLE/PPS.php';
24require_once
'System.php';
74 $this->_tmp_dir = $dir;
88 $this->_tmp_filename = tempnam($this->_tmp_dir,
"OLE_PPS_File");
89 $fh = @fopen($this->_tmp_filename,
"w+b");
91 return $this->
raiseError(
"Can't create temporary file");
93 $this->_PPS_FILE = $fh;
94 if ($this->_PPS_FILE) {
95 fseek($this->_PPS_FILE, 0);
109 if ($this->_PPS_FILE) {
110 fwrite($this->_PPS_FILE,
$data);
112 $this->_data .=
$data;
122 $this->ole->getStream($this);
getStream()
Returns a stream for reading this file using fread() etc.
append($data)
Append data to PPS.
setTempDir($dir)
Sets the temp dir used for storing the OLE file.
init()
Initialization method.
OLE_PPS_File($name)
The constructor.
OLE_PPS($No, $name, $type, $prev, $next, $dir, $time_1st, $time_2nd, $data, $children)
The constructor.
& raiseError($message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false)
This method is a wrapper that returns an instance of the configured error class with this object's de...
tmpdir()
Get the path of the temporal directory set in the system by looking in its environments variables.