Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | List of all members
SMW\Exporter\Controller\Queue Class Reference

Public Member Functions

 clear ()
 
 getMembers ()
 
 remove (string $key)
 
 count ()
 
 reset ()
 
 add (DIWikiPage $dataItem, int $recdepth)
 
 isNotDone (DIWikiPage $dataItem)
 
 isDone (DIWikiPage $dataItem, int $recdepth)
 
 done (DIWikiPage $dataItem, int $recdepth)
 

Public Attributes

const MAX_CACHE_SIZE = 5000
 
const CACHE_BACKJUMP = 500
 

Detailed Description

GNU GPL v2+

Since
3.2
Author
mwjames

Member Function Documentation

◆ add()

SMW\Exporter\Controller\Queue::add ( DIWikiPage  $dataItem,
int  $recdepth 
)
Since
3.2
Parameters
DIWikiPage$dataItem
int$recdepth

◆ clear()

SMW\Exporter\Controller\Queue::clear ( )
Since
3.2

◆ count()

SMW\Exporter\Controller\Queue::count ( )
Since
3.2
Returns
int

◆ done()

SMW\Exporter\Controller\Queue::done ( DIWikiPage  $dataItem,
int  $recdepth 
)

Mark an article as done while making sure that the cache used for this stays reasonably small. Input is given as an SMWDIWikiPage object.

Since
3.2
Parameters
SMWDIWikiPage$stspecifying the object to check
int$recdepth

◆ getMembers()

SMW\Exporter\Controller\Queue::getMembers ( )
Since
3.2
Returns
[]

◆ isDone()

SMW\Exporter\Controller\Queue::isDone ( DIWikiPage  $dataItem,
int  $recdepth 
)

Check if the given object has already been serialised at sufficient recursion depth.

Since
3.2
Parameters
SMWDIWikiPage$stspecifying the object to check
int$recdepth
Returns
boolean

◆ isNotDone()

SMW\Exporter\Controller\Queue::isNotDone ( DIWikiPage  $dataItem)
Since
3.2
Parameters
SMWDIWikiPage$stspecifying the object to check
Returns
bool

◆ remove()

SMW\Exporter\Controller\Queue::remove ( string  $key)
Since
3.2
Parameters
string$key

◆ reset()

SMW\Exporter\Controller\Queue::reset ( )
Since
3.2

Member Data Documentation

◆ MAX_CACHE_SIZE

const SMW\Exporter\Controller\Queue::MAX_CACHE_SIZE = 5000

Maximum to not let cache arrays get larger than this


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

About | General disclaimer | Privacy policy