SMWSqlStore2IdCache Class Reference
[SMWStore]

An in-memory cache for managing object ids in SMWSQLStore2. More...

List of all members.

Public Member Functions

 __construct ($db)
 Constructor.
 getId ($title, $namespace, $interwiki, $subobject)
 getCachedId ($title, $namespace, $interwiki, $subobject)
 setId ($title, $namespace, $interwiki, $subobject, $id)
 deleteId ($title, $namespace, $interwiki, $subobject)
 moveSubobjects ($oldtitle, $oldnamespace, $newtitle, $newnamespace)
 clear ()

Protected Member Functions

 checkForSizeLimit ()

Static Protected Member Functions

static getHashKey ($title, $namespace, $interwiki, $subobject)

Protected Attributes

 $m_db
 $m_data = array()


Detailed Description

An in-memory cache for managing object ids in SMWSQLStore2.

Since:
1.6

Definition at line 20 of file SMW_SqlStore2IdCache.php.


Constructor & Destructor Documentation

SMWSqlStore2IdCache::__construct ( db  ) 

Constructor.

Parameters:
$tableName string name of the table that is buffered
$db Database handler

Definition at line 31 of file SMW_SqlStore2IdCache.php.

References $db.


Member Function Documentation

SMWSqlStore2IdCache::getId ( title,
namespace,
interwiki,
subobject 
)

Definition at line 35 of file SMW_SqlStore2IdCache.php.

References checkForSizeLimit().

SMWSqlStore2IdCache::getCachedId ( title,
namespace,
interwiki,
subobject 
)

Definition at line 57 of file SMW_SqlStore2IdCache.php.

SMWSqlStore2IdCache::setId ( title,
namespace,
interwiki,
subobject,
id 
)

Definition at line 66 of file SMW_SqlStore2IdCache.php.

References checkForSizeLimit().

SMWSqlStore2IdCache::deleteId ( title,
namespace,
interwiki,
subobject 
)

Definition at line 76 of file SMW_SqlStore2IdCache.php.

SMWSqlStore2IdCache::moveSubobjects ( oldtitle,
oldnamespace,
newtitle,
newnamespace 
)

Definition at line 81 of file SMW_SqlStore2IdCache.php.

References clear().

SMWSqlStore2IdCache::clear (  ) 

Definition at line 87 of file SMW_SqlStore2IdCache.php.

Referenced by checkForSizeLimit(), and moveSubobjects().

SMWSqlStore2IdCache::checkForSizeLimit (  )  [protected]

Definition at line 91 of file SMW_SqlStore2IdCache.php.

References clear().

Referenced by getId(), and setId().

static SMWSqlStore2IdCache::getHashKey ( title,
namespace,
interwiki,
subobject 
) [static, protected]

Definition at line 97 of file SMW_SqlStore2IdCache.php.


Member Data Documentation

SMWSqlStore2IdCache::$m_db [protected]

Definition at line 21 of file SMW_SqlStore2IdCache.php.

SMWSqlStore2IdCache::$m_data = array() [protected]

Definition at line 22 of file SMW_SqlStore2IdCache.php.


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

Generated on Sun Mar 18 07:15:44 2012 for Semantic MediaWiki by  doxygen 1.5.6