Definition at line 62 of file LOB.php.
◆ stream_close()
MDB2_LOB::stream_close |
( |
| ) |
|
close stream
public
Definition at line 245 of file LOB.php.
References $db_index, $GLOBALS, and MDB2\raiseError().
247 if (isset(
$GLOBALS[
'_MDB2_databases'][$this->db_index])) {
249 if (isset($db->datatype->lobs[$this->lob_index])) {
250 $db->datatype->_destroyLOB($db->datatype->lobs[$this->lob_index]);
251 unset($db->datatype->lobs[$this->lob_index]);
◆ stream_eof()
Check if stream reaches EOF.
- Returns
- bool public
Definition at line 185 of file LOB.php.
References $db_index, $GLOBALS, and $result.
187 if (!isset(
$GLOBALS[
'_MDB2_databases'][$this->db_index])) {
192 $result = $db->datatype->_endOfLOB($db->datatype->lobs[$this->lob_index]);
193 if (version_compare(phpversion(),
"5.0",
">=")
194 && version_compare(phpversion(),
"5.1",
"<")
◆ stream_open()
MDB2_LOB::stream_open |
( |
|
$path, |
|
|
|
$mode, |
|
|
|
$options, |
|
|
& |
$opened_path |
|
) |
| |
open stream
- Parameters
-
string | specifies the URL that was passed to fopen() |
string | the mode used to open the file |
int | holds additional flags set by the streams API |
string | not used |
- Returns
- bool public
Definition at line 95 of file LOB.php.
References $db_index, $GLOBALS, and $path.
97 if (!preg_match(
'/^rb?\+?$/', $mode)) {
100 $url = parse_url(
$path);
101 if (empty($url[
'host'])) {
104 $this->db_index = (int)$url[
'host'];
105 if (!isset(
$GLOBALS[
'_MDB2_databases'][$this->db_index])) {
109 $this->lob_index = (int)$url[
'user'];
110 if (!isset($db->datatype->lobs[$this->lob_index])) {
◆ stream_read()
MDB2_LOB::stream_read |
( |
|
$count | ) |
|
read stream
- Parameters
-
int | number of bytes to read |
- Returns
- string public
Definition at line 127 of file LOB.php.
References $data, $db_index, $GLOBALS, and $lob_index.
129 if (isset(
$GLOBALS[
'_MDB2_databases'][$this->db_index])) {
131 $db->datatype->_retrieveLOB($db->datatype->lobs[$this->lob_index]);
133 $data = $db->datatype->_readLOB($db->datatype->lobs[$this->lob_index], $count);
134 $length = strlen(
$data);
◆ stream_seek()
MDB2_LOB::stream_seek |
( |
|
$offset, |
|
|
|
$whence |
|
) |
| |
Seek stream, not implemented.
- Parameters
-
- Returns
- bool public
Definition at line 213 of file LOB.php.
◆ stream_stat()
MDB2_LOB::stream_stat |
( |
| ) |
|
return information about stream
public
Definition at line 226 of file LOB.php.
References $db_index, and $GLOBALS.
228 if (isset(
$GLOBALS[
'_MDB2_databases'][$this->db_index])) {
231 'db_index' => $this->db_index,
232 'lob_index' => $this->lob_index,
◆ stream_tell()
MDB2_LOB::stream_tell |
( |
| ) |
|
◆ stream_write()
MDB2_LOB::stream_write |
( |
|
$data | ) |
|
write stream, note implemented
- Parameters
-
- Returns
- int public
Definition at line 154 of file LOB.php.
◆ $db_index
◆ $lob_index
The documentation for this class was generated from the following file: