Channel_BufferChannel buffer based on a database
Channel buffer based on a database
Located in /include/class.Channel_Buffer_DB.inc (line 55)
string
$channel
(line 62)
string
$channel_id
(line 124)
channel id 32-bit based on channel name
channel id 32-bit based on channel name needed for shared memory and semaphores
integer
$connection_count
= 0 (line 106)
int
$cur_line_idx
(line 78)
object
$db
(line 85)
mixed
$locked
= false (line 136)
int
$max_line_idx
(line 70)
dbRecordSet
$rs_channels
(line 99)
dbRecordSet
$rs_line_buffer
(line 92)
int
$sem_id
(line 135)
Semaphore Id for channel buffer locking
Semaphore Id for channel buffer locking
file
$_fp
= null (line 114)
Constructor.
Constructor. create a new channel buffer object with name 'channel'
Connect to the database
Connect to the database Establish a database connection
Destroys the channel buffer in database.
Destroys the channel buffer in database.
Get content of current chat line.
Get content of current chat line.
Gets the chat lines since a given line index
Gets the chat lines since a given line index
Initialize the channel buffer in database.
Initialize the channel buffer in database.
Set a lock to block all other threads.
Set a lock to block all other threads. Creates and sets a lock on a dummy file to perform a simple reader/writer model
Writes chat lines into the buffer
Writes chat lines into the buffer
Set var max_line_idx.
Set var max_line_idx. It is only a dummy. To change the size of the line buffer, simply add another column like 'line_27'
test class Channel_Buffer
test class Channel_Buffer call like: Channel_Buffer::test();
Documentation generated on Tue, 29 Jun 2004 14:41:50 +0200 by phpDocumentor 1.3.0RC3