Public Member Functions | |
OLE_PPS_File ($name) | |
The constructor. | |
setTempDir ($dir) | |
Sets the temp dir used for storing the OLE file. | |
init () | |
Initialization method. | |
append ($data) | |
Append data to PPS. | |
Data Fields | |
$_tmp_dir |
Definition at line 32 of file File.php.
OLE_PPS_File::append | ( | $ | data | ) |
OLE_PPS_File::init | ( | ) |
Initialization method.
Has to be called right after OLE_PPS_File().
public
Definition at line 85 of file File.php.
{ $this->_tmp_filename = tempnam($this->_tmp_dir, "OLE_PPS_File"); $fh = @fopen($this->_tmp_filename, "w+b"); if ($fh == false) { return $this->raiseError("Can't create temporary file"); } $this->_PPS_FILE = $fh; if ($this->_PPS_FILE) { fseek($this->_PPS_FILE, 0); } }
OLE_PPS_File::OLE_PPS_File | ( | $ | name | ) |
The constructor.
public
string | $name The name of the file (in Unicode) |
Definition at line 47 of file File.php.
References OLE_PPS::OLE_PPS().
{ $this->_tmp_dir = ''; $this->OLE_PPS( null, $name, OLE_PPS_TYPE_FILE, null, null, null, null, null, '', array()); }
OLE_PPS_File::setTempDir | ( | $ | dir | ) |