class vB_Library_Search extends vB_Library

vB_Library_Search

Traits

Properties

static protected $instance from vB_Library

Methods

__sleep()

No description

__wakeup()

No description

__construct()

No description

static vB_PageCache
instance($class)

Returns singleton instance of self.

static 
getLibraryClassNameInternal($controller)

No description

static 
getContentInstance($contenttypeid)

No description

static 
clearCache()

No description

boolean
reIndexAll($silent = false)

Re-indexes the whole database Returns true if the full indexing is implemented and successful for the selected search implementation Returns false if the full indexing is not implemented

index(int $node_id, boolean $propagate = true)

Index a node

indexText($node, $title, $text, $skip_prev_index = false)

No description

indexTrending($lookback, $minimum)

No description

attributeChanged($nodeid)

No description

emptyIndex()

No description

bool
indexRange(int $start = 0, int $perpage = false, array $filter = false)

indexes a range of nodes

delete($nodeid, $node = false)

No description

purgeCacheForCurrentUser($from = false)

Purge search log cache for current logged-in user

clean()

No description

Details

in vB_Trait_NoSerialize at line 15
__sleep()

in vB_Trait_NoSerialize at line 20
__wakeup()

in vB_Library at line 25
protected __construct()

in vB_Library at line 35
static vB_PageCache instance($class)

Returns singleton instance of self.

Parameters

$class

Return Value

vB_PageCache
  • Reference to singleton instance of the cache handler

in vB_Library at line 52
static protected getLibraryClassNameInternal($controller)

Parameters

$controller

in vB_Library at line 91
static getContentInstance($contenttypeid)

Parameters

$contenttypeid

in vB_Library at line 99
static clearCache()

at line 29
boolean reIndexAll($silent = false)

Re-indexes the whole database Returns true if the full indexing is implemented and successful for the selected search implementation Returns false if the full indexing is not implemented

Parameters

$silent

Return Value

boolean

at line 40
index(int $node_id, boolean $propagate = true)

Index a node

Parameters

int $node_id to index
boolean $propagate flag to propagate the indexing to the nodes parents

at line 45
indexText($node, $title, $text, $skip_prev_index = false)

Parameters

$node
$title
$text
$skip_prev_index

at line 50
indexTrending($lookback, $minimum)

Parameters

$lookback
$minimum

at line 55
attributeChanged($nodeid)

Parameters

$nodeid

at line 60
emptyIndex()

at line 73
bool indexRange(int $start = 0, int $perpage = false, array $filter = false)

indexes a range of nodes

Parameters

int $start
  • where to start indexing from - used for pagination
int $perpage
  • nr of nodes to index
array $filter
  • only index this type of nodes

Return Value

bool
  • returns true if there are more nodes to index

at line 123
delete($nodeid, $node = false)

Parameters

$nodeid
$node

at line 131
purgeCacheForCurrentUser($from = false)

Purge search log cache for current logged-in user

Parameters

$from

at line 149
clean()