XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
Swift_KeyCache_SimpleKeyCacheInputStream Class Reference
Inheritance diagram for Swift_KeyCache_SimpleKeyCacheInputStream:
Inheritance graph

Public Member Functions

 __clone ()
 
 bind (Swift_InputByteStream $is)
 
 commit ()
 
 flushBuffers ()
 
 setItemKey ($itemKey)
 
 setKeyCache (Swift_KeyCache $keyCache)
 
 setNsKey ($nsKey)
 
 setWriteThroughStream (Swift_InputByteStream $is)
 
 unbind (Swift_InputByteStream $is)
 
 write ($bytes, Swift_InputByteStream $is=null)
 

Private Attributes

 $_itemKey
 
 $_keyCache
 
 $_nsKey
 
 $_writeThrough = null
 

Detailed Description

Definition at line 20 of file SimpleKeyCacheInputStream.php.

Member Function Documentation

Swift_KeyCache_SimpleKeyCacheInputStream::__clone ( )

Any implementation should be cloneable, allowing the clone to access a separate $nsKey and $itemKey.

Implements Swift_KeyCache_KeyCacheInputStream.

Definition at line 126 of file SimpleKeyCacheInputStream.php.

Swift_KeyCache_SimpleKeyCacheInputStream::bind ( Swift_InputByteStream  $is)

Not used.

Implements Swift_InputByteStream.

Definition at line 84 of file SimpleKeyCacheInputStream.php.

Swift_KeyCache_SimpleKeyCacheInputStream::commit ( )

Not used.

Implements Swift_InputByteStream.

Definition at line 77 of file SimpleKeyCacheInputStream.php.

Swift_KeyCache_SimpleKeyCacheInputStream::flushBuffers ( )

Flush the contents of the stream (empty it) and set the internal pointer to the beginning.

Implements Swift_InputByteStream.

Definition at line 99 of file SimpleKeyCacheInputStream.php.

Swift_KeyCache_SimpleKeyCacheInputStream::setItemKey (   $itemKey)

Set the itemKey which will be written to.

Parameters
string$itemKey

Implements Swift_KeyCache_KeyCacheInputStream.

Definition at line 117 of file SimpleKeyCacheInputStream.php.

Swift_KeyCache_SimpleKeyCacheInputStream::setKeyCache ( Swift_KeyCache  $keyCache)

Set the KeyCache to wrap.

Parameters
Swift_KeyCache$keyCache

Implements Swift_KeyCache_KeyCacheInputStream.

Definition at line 40 of file SimpleKeyCacheInputStream.php.

Swift_KeyCache_SimpleKeyCacheInputStream::setNsKey (   $nsKey)

Set the nsKey which will be written to.

Parameters
string$nsKey

Implements Swift_KeyCache_KeyCacheInputStream.

Definition at line 108 of file SimpleKeyCacheInputStream.php.

Swift_KeyCache_SimpleKeyCacheInputStream::setWriteThroughStream ( Swift_InputByteStream  $is)

Specify a stream to write through for each write().

Parameters
Swift_InputByteStream$is

Implements Swift_KeyCache_KeyCacheInputStream.

Definition at line 49 of file SimpleKeyCacheInputStream.php.

Swift_KeyCache_SimpleKeyCacheInputStream::unbind ( Swift_InputByteStream  $is)

Not used.

Implements Swift_InputByteStream.

Definition at line 91 of file SimpleKeyCacheInputStream.php.

Swift_KeyCache_SimpleKeyCacheInputStream::write (   $bytes,
Swift_InputByteStream  $is = null 
)

Writes $bytes to the end of the stream.

Parameters
string$bytes
Swift_InputByteStream$is,optional

Definition at line 59 of file SimpleKeyCacheInputStream.php.

References Swift_KeyCache\MODE_APPEND.

Member Data Documentation

Swift_KeyCache_SimpleKeyCacheInputStream::$_itemKey
private

The itemKey of the KeyCache being written to

Definition at line 31 of file SimpleKeyCacheInputStream.php.

Swift_KeyCache_SimpleKeyCacheInputStream::$_keyCache
private

The KeyCache being written to

Definition at line 25 of file SimpleKeyCacheInputStream.php.

Swift_KeyCache_SimpleKeyCacheInputStream::$_nsKey
private

The nsKey of the KeyCache being written to

Definition at line 28 of file SimpleKeyCacheInputStream.php.

Swift_KeyCache_SimpleKeyCacheInputStream::$_writeThrough = null
private

A stream to write through on each write()

Definition at line 34 of file SimpleKeyCacheInputStream.php.


The documentation for this class was generated from the following file: