BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
SMW\SQLStore\ChangeOp\TempChangeOpStore Class Reference
Inheritance diagram for SMW\SQLStore\ChangeOp\TempChangeOpStore:
Collaboration diagram for SMW\SQLStore\ChangeOp\TempChangeOpStore:

Public Member Functions

 __construct (Cache $cache, $prefix= '')
 
 setLogger (LoggerInterface $logger)
 
 getSlot (CompositePropertyTableDiffIterator $compositePropertyTableDiffIterator)
 
 createSlotFrom (CompositePropertyTableDiffIterator $compositePropertyTableDiffIterator)
 
 delete ($slot)
 
 newCompositePropertyTableDiffIterator ($slot)
 

Public Attributes

const CACHE_NAMESPACE = ':smw:diff:'
 

Detailed Description

Pending the size of a diff, transferring it with the job parameter maybe too large and can eventually fail during unserialization forcing a job and hereby the update transaction to fail with:

"Notice: unserialize(): Error at offset 65504 of 65535 bytes in ... JobQueueDB.php on line 817"

This class will store the diff object temporarily in Cache with the possibility to retrieve it at a later point without relying on the JobQueueDB as storage medium.

It is expected that the ChronologyPurgeJob is removing inactive slots.

GNU GPL v2+

Since
2.5
Author
mwjames

Constructor & Destructor Documentation

SMW\SQLStore\ChangeOp\TempChangeOpStore::__construct ( Cache  $cache,
  $prefix = '' 
)
Since
2.5
Parameters
Cache$cache
string$prefix

Member Function Documentation

SMW\SQLStore\ChangeOp\TempChangeOpStore::createSlotFrom ( CompositePropertyTableDiffIterator  $compositePropertyTableDiffIterator)
Since
2.5
Parameters
CompositePropertyTableDiffIterator$compositePropertyTableDiffIterator
Returns
null|string
SMW\SQLStore\ChangeOp\TempChangeOpStore::delete (   $slot)
Since
2.5
Parameters
string$slot
SMW\SQLStore\ChangeOp\TempChangeOpStore::getSlot ( CompositePropertyTableDiffIterator  $compositePropertyTableDiffIterator)
Since
2.5
Parameters
CompositePropertyTableDiffIterator$compositePropertyTableDiffIterator
Returns
string
SMW\SQLStore\ChangeOp\TempChangeOpStore::newCompositePropertyTableDiffIterator (   $slot)
Since
3.0
Parameters
string$slot
Returns
CompositePropertyTableDiffIterator|null
SMW\SQLStore\ChangeOp\TempChangeOpStore::setLogger ( LoggerInterface  $logger)
See Also
LoggerAwareInterface::setLogger
Since
2.5
Parameters
LoggerInterface$logger

Implements Psr\Log\LoggerAwareInterface.


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