class vB_Library_RouteFix extends vB_Library

vB_Library_RouteFix

Traits

Properties

static protected $instance from vB_Library
protected $assertor
protected $channels
protected $routes
protected $pages
protected $xmlLocation
protected $defaultChannelRoute
protected $defaultChannelPage
protected $forumHomePrefix
protected $errPhrase
protected $statusPhrase
protected $fixedNodes
protected $fixedPages
protected $messages
protected $phraseLib
protected $phrases

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

array|bool
fixRoutes()

No description

fetchPhrase($key, $params = array())

No description

checkPrefixes()

Check all routeprefixes. Make sure the hierarchy is clean. Urlident should match prefix, and child prefix should match parent.

checkPageInfo()

Check all channel and conversation routes. Make sure the mapping between route arguments page and page routeid is clean.

fixPageTemplate($routeInfo)

checks and if necessary creates a new pagetemplate record

catchError(string $errno, string $errstr, string $errfile, string $errline)

No description

fixPounds()

No description

checkSearchRoute()

No description

checkAdvancedSearchRoute()

No description

connectRouteToPage(string $routeGuid, string $pageGuid, string $identKey)

No description

checkPageTemplate(mixed $page)

No description

checkConversationRoutes()

No description

clearBadRedirects()

No description

checkHomePage()

No description

checkForumHome()

No description

removePound($routeRec)

No description

createChannelRoute($nodeid)

No description

either
makeChannelPage(integer $routeid, mixed $node)

No description

createConversationRoute(array $channelRoute)

No description

int
makeConversationPage(int $routeid, mixed $node)

No description

createPagePhrases(string $title, string $description, string $guid)

No description

deleteUnusedRoutes()

No description

fixChannelRoute(mixed $route, mixed $nodeid, mixed $page = false)

No description

getDefaults()

No description

makeRouteGuidUnique(int $routeid, string $guid)

No description

Details

in vB_Trait_NoSerialize at line 15
__sleep()

in vB_Trait_NoSerialize at line 20
__wakeup()

at line 68
__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 79
array|bool fixRoutes()

Return Value

array|bool

at line 163
protected fetchPhrase($key, $params = array())

Parameters

$key
$params

at line 189
protected checkPrefixes()

Check all routeprefixes. Make sure the hierarchy is clean. Urlident should match prefix, and child prefix should match parent.

at line 234
protected checkPageInfo()

Check all channel and conversation routes. Make sure the mapping between route arguments page and page routeid is clean.

at line 290
protected fixPageTemplate($routeInfo)

checks and if necessary creates a new pagetemplate record

Parameters

$routeInfo

at line 353
catchError(string $errno, string $errstr, string $errfile, string $errline)

Parameters

string $errno
string $errstr
string $errfile
string $errline

at line 359
protected fixPounds()

at line 374
protected checkSearchRoute()

at line 382
protected checkAdvancedSearchRoute()

at line 393
protected connectRouteToPage(string $routeGuid, string $pageGuid, string $identKey)

Parameters

string $routeGuid route guid
string $pageGuid page guid
string $identKey string to identify the route that could not be fixed. It should be a phrase key.

at line 471
protected checkPageTemplate(mixed $page)

Parameters

mixed $page can be an int pageid or a record from the page table.

at line 509
protected checkConversationRoutes()

at line 554
protected clearBadRedirects()

at line 627
protected checkHomePage()

at line 705
protected checkForumHome()

at line 760
protected removePound($routeRec)

Parameters

$routeRec

at line 774
createChannelRoute($nodeid)

Parameters

$nodeid

at line 820
protected either makeChannelPage(integer $routeid, mixed $node)

Parameters

integer $routeid primary key from routenew table
mixed $node node record

Return Value

either an integer or an error array

at line 854
createConversationRoute(array $channelRoute)

Parameters

array $channelRoute route record for the matching vB5_Route_Channel record

at line 901
protected int makeConversationPage(int $routeid, mixed $node)

Parameters

int $routeid routeid
mixed $node node record

Return Value

int pageid of new page

at line 936
protected createPagePhrases(string $title, string $description, string $guid)

Parameters

string $title title of channel
string $description description of channel
string $guid page guid

at line 964
protected deleteUnusedRoutes()

at line 1012
protected fixChannelRoute(mixed $route, mixed $nodeid, mixed $page = false)

Parameters

mixed $route route table record
mixed $nodeid node table record
mixed $page page table record

at line 1058
protected getDefaults()

at line 1106
protected makeRouteGuidUnique(int $routeid, string $guid)

Parameters

int $routeid routeid
string $guid route guid