\Pluf\HTTP\Download2PgLOB

PgSQL large object stream interface for Download2

Usage: require_once 'HTTP/Download2.php'; require_once 'HTTP/Download2/PgLOB.php'; $db = &DB::connect('pgsql://user:pass@host/db'); // or $db = pg_connect(...); $lo = Download2_PgLOB::open($db, 12345); $dl = new Download2; $dl->setResource($lo); $dl->send()

Summary

Methods
Properties
Constants
setConnection()
getConnection()
open()
stream_open()
stream_read()
stream_seek()
stream_tell()
stream_eof()
stream_flush()
stream_stat()
stream_write()
stream_close()
$size
$conn
$handle
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$size

$size : 

Type

$conn

$conn : 

Type

$handle

$handle : 

Type

Methods

setConnection()

setConnection(mixed  $conn) : boolean

Set Connection

Parameters

mixed $conn

Returns

boolean

getConnection()

getConnection() : resource

Get Connection

Returns

resource

open()

open(mixed  $conn, integer  $loid, string  $mode = 'rb') : resource

Open

Parameters

mixed $conn
integer $loid
string $mode

Returns

resource

stream_open()

stream_open(  $path,   $mode) 

Parameters

$path
$mode

stream_read()

stream_read(  $length) 

Parameters

$length

stream_seek()

stream_seek(  $offset,   $whence = SEEK_SET) 

Parameters

$offset
$whence

stream_tell()

stream_tell() 

stream_eof()

stream_eof() 

stream_flush()

stream_flush() 

stream_stat()

stream_stat() 

stream_write()

stream_write(  $data) 

Parameters

$data

stream_close()

stream_close()