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

Public Member Functions

 clearAll ($nsKey)
 
 clearKey ($nsKey, $itemKey)
 
 exportToByteStream ($nsKey, $itemKey, Swift_InputByteStream $is)
 
 getInputByteStream ($nsKey, $itemKey, Swift_InputByteStream $writeThrough=null)
 
 getString ($nsKey, $itemKey)
 
 hasKey ($nsKey, $itemKey)
 
 importFromByteStream ($nsKey, $itemKey, Swift_OutputByteStream $os, $mode)
 
 setString ($nsKey, $itemKey, $string, $mode)
 

Additional Inherited Members

- Public Attributes inherited from Swift_KeyCache
const MODE_APPEND = 2
 
const MODE_WRITE = 1
 

Detailed Description

Definition at line 22 of file NullKeyCache.php.

Member Function Documentation

Swift_KeyCache_NullKeyCache::clearAll (   $nsKey)

Clear all data in the namespace $nsKey if it exists.

Parameters
string$nsKey

Implements Swift_KeyCache.

Definition at line 106 of file NullKeyCache.php.

Swift_KeyCache_NullKeyCache::clearKey (   $nsKey,
  $itemKey 
)

Clear data for $itemKey in the namespace $nsKey if it exists.

Parameters
string$nsKey
string$itemKey

Implements Swift_KeyCache.

Definition at line 98 of file NullKeyCache.php.

Swift_KeyCache_NullKeyCache::exportToByteStream (   $nsKey,
  $itemKey,
Swift_InputByteStream  $is 
)

Get data back out of the cache as a ByteStream.

Parameters
string$nsKey
string$itemKey
Swift_InputByteStream$isto write the data to

Implements Swift_KeyCache.

Definition at line 78 of file NullKeyCache.php.

Swift_KeyCache_NullKeyCache::getInputByteStream (   $nsKey,
  $itemKey,
Swift_InputByteStream  $writeThrough = null 
)

Provides a ByteStream which when written to, writes data to $itemKey. NOTE: The stream will always write in append mode.

Parameters
string$nsKey
string$itemKey
Returns
Swift_InputByteStream

Implements Swift_KeyCache.

Definition at line 57 of file NullKeyCache.php.

Swift_KeyCache_NullKeyCache::getString (   $nsKey,
  $itemKey 
)

Get data back out of the cache as a string.

Parameters
string$nsKey
string$itemKey
Returns
string

Implements Swift_KeyCache.

Definition at line 68 of file NullKeyCache.php.

Swift_KeyCache_NullKeyCache::hasKey (   $nsKey,
  $itemKey 
)

Check if the given $itemKey exists in the namespace $nsKey.

Parameters
string$nsKey
string$itemKey
Returns
boolean

Implements Swift_KeyCache.

Definition at line 88 of file NullKeyCache.php.

Swift_KeyCache_NullKeyCache::importFromByteStream (   $nsKey,
  $itemKey,
Swift_OutputByteStream  $os,
  $mode 
)

Set a ByteStream into the cache under $itemKey for the namespace $nsKey.

Parameters
string$nsKey
string$itemKey
Swift_OutputByteStream$os
int$mode
See Also
MODE_WRITE, MODE_APPEND

Implements Swift_KeyCache.

Definition at line 45 of file NullKeyCache.php.

Swift_KeyCache_NullKeyCache::setString (   $nsKey,
  $itemKey,
  $string,
  $mode 
)

Set a string into the cache under $itemKey for the namespace $nsKey.

Parameters
string$nsKey
string$itemKey
string$string
int$mode
See Also
MODE_WRITE, MODE_APPEND

Implements Swift_KeyCache.

Definition at line 33 of file NullKeyCache.php.


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