class vB_Node

Traits

Methods

__sleep()

No description

__wakeup()

No description

static array
getCounts(int $nodeId)

Calculates textcount, textunpubcount, totalcount, totalunpubcount for a nodeid.

static 
getExcludedTypes()

Returns the content types that don't affect node counts and last data.

static mixed
validateRecord(mixed $record)

Verifies integrity of a node in db. Checks "last" data, counts, that it has a route, etc.

static 
validateClosure($nodeid)

No description

static 
fixNodeCount($nodeId, $noLast = false)

This method fixes the count values for a node

Details

in vB_Trait_NoSerialize at line 15
__sleep()

in vB_Trait_NoSerialize at line 20
__wakeup()

at line 26
static array getCounts(int $nodeId)

Calculates textcount, textunpubcount, totalcount, totalunpubcount for a nodeid.

Used for fixing node counts and for verifying integrity

Parameters

int $nodeId

Return Value

array

at line 40
static getExcludedTypes()

Returns the content types that don't affect node counts and last data.

at line 77
static mixed validateRecord(mixed $record)

Verifies integrity of a node in db. Checks "last" data, counts, that it has a route, etc.

Note that this is intended for testing and diagnostics and may be slow

Parameters

mixed $record node record. Should have at least the information from node library getNode().

Return Value

mixed either true or an array of error strings

at line 257
static validateClosure($nodeid)

Parameters

$nodeid

at line 344
static fixNodeCount($nodeId, $noLast = false)

This method fixes the count values for a node

Parameters

$nodeId
$noLast