vB_Library_RouteFix
extends vB_Library
in package
vB_Library_RouteFix
Tags
Table of Contents
- $assertor : mixed
- $channels : mixed
- $defaultChannelPage : mixed
- $defaultChannelRoute : mixed
- $errPhrase : mixed
- $fixedNodes : mixed
- $fixedPages : mixed
- $forumHomePrefix : mixed
- $instance : mixed
- $messages : mixed
- $pages : mixed
- $phraseLib : mixed
- $phrases : mixed
- $routes : mixed
- $statusPhrase : mixed
- $xmlLocation : mixed
- __construct() : mixed
- __serialize() : mixed
- __sleep() : mixed
- __unserialize() : mixed
- __wakeup() : mixed
- catchError() : mixed
- clearCache() : mixed
- createChannelRoute() : mixed
- createConversationRoute() : mixed
- fixRoutes() : array<string|int, mixed>|bool
- getContentInstance() : mixed
- instance() : vB_PageCache
- Returns singleton instance of self.
- monitorWords() : mixed
- Checks if the text contains monitored words, and if so, sends notifications to admins and moderators if the setting is on.
- checkAdvancedSearchRoute() : mixed
- checkConversationRoutes() : mixed
- checkForumHome() : mixed
- checkHomePage() : mixed
- checkPageInfo() : mixed
- Check all channel and conversation routes. Make sure the mapping between route arguments page and page routeid is clean.
- checkPageTemplate() : mixed
- checkPrefixes() : mixed
- Check all routeprefixes. Make sure the hierarchy is clean. Urlident should match prefix, and child prefix should match parent.
- checkSearchRoute() : mixed
- clearBadRedirects() : mixed
- connectRouteToPage() : mixed
- createPagePhrases() : mixed
- deleteUnusedRoutes() : mixed
- fetchPhrase() : mixed
- fixChannelRoute() : mixed
- fixPageTemplate() : mixed
- checks and if necessary creates a new pagetemplate record
- fixPounds() : mixed
- getDefaults() : mixed
- getLibraryClassNameInternal() : mixed
- makeChannelPage() : either
- makeConversationPage() : int
- makeRouteGuidUnique() : mixed
- removePound() : mixed
Properties
$assertor
protected
mixed
$assertor
$channels
protected
mixed
$channels
$defaultChannelPage
protected
mixed
$defaultChannelPage
$defaultChannelRoute
protected
mixed
$defaultChannelRoute
$errPhrase
protected
mixed
$errPhrase
$fixedNodes
protected
mixed
$fixedNodes
= array()
$fixedPages
protected
mixed
$fixedPages
= array()
$forumHomePrefix
protected
mixed
$forumHomePrefix
$instance
protected
static mixed
$instance
= array()
$messages
protected
mixed
$messages
= array()
$pages
protected
mixed
$pages
$phraseLib
protected
mixed
$phraseLib
$phrases
protected
mixed
$phrases
= array('skipping_for_node_x_y' => 'Skipping for Node {1}, {2}', 'node_x_y_needs_route' => 'Node {1}, {2} needs a route', 'route_updates' => 'Route Updates and Issues', 'route_x_y_z_missing_nodeid' => 'Route #{1} at node {2}, {3} doesn't have a nodeid', 'route_x_y_z_has_mismatched_nodeid' => 'Route #{1} at node {2}, {3} has mismatched nodeid ', 'error_x' => 'Error {1}', 'cannot_fix_x_y_z_need_a' => 'Cannot fix {1} guid {2}, need a valid {3} for guid {4}', 'have_route_x_for_node_y' => 'Have route {1} for node {2}', 'found_route_params_for_node_x' => 'Found route parameters in the xml file for node {1}', 'created_route_for_x' => 'Created new Route for node {1}', 'failed_to_create_route_x' => 'failed to create new Route for {1}', 'updating_route_x_to_y' => 'Updating Route to {1} for node {2}', 'just_deleted_routes_x' => 'Just deleted routes {1}', 'conflict_with_node_x' => 'Unable to fix node {1}- more than channel route is pointing to it', 'correcting_route_for_node_x' => 'Correcting routeid for node {1}', 'route_x_missing_argument' => 'Route #{1} is missing arguments and cannot be fixed.', 'created_page_for_route_x' => 'Created new page for route {1}', 'conflict_with_page_x' => 'Unable to fix page {1}- more than route is pointing to it', 'correcting_route_for_page_x' => 'Correcting routeid for page {1}', 'created_new_route_guid_x_for_y' => 'Created new route guid {1} for {2}', 'processing_complete' => 'Completed Processing', 'route_x_missing_channel' => 'Route {1} is missing the channelid and cannot be automatically repaired', 'no_forum_home' => 'Unable to find forum home. I cannot fix this', 'no_forum_home_route' => 'Unable to find or create either forum or home route. These are critical and without them I cannot continue', 'cannot_set_forum_home' => 'Unable to set home page route. I cannot fix this route table', 'deleting_unmatched_pages_x' => 'Delete pages with invalid routeid's- {1}', 'correcting_conversation_regex_x' => 'Correcting conversation regex for {1}', 'failed_to_create_conversation_route_for_x', 'failed to create new conversation route for node#{1}', 'failed_to_create_channel_route_for_x', 'failed to create new channel route for node#{1}')
$routes
protected
mixed
$routes
$statusPhrase
protected
mixed
$statusPhrase
$xmlLocation
protected
mixed
$xmlLocation
Methods
__construct()
public
__construct() : mixed
Return values
mixed —__serialize()
public
__serialize() : mixed
Return values
mixed —__sleep()
public
__sleep() : mixed
Return values
mixed —__unserialize()
public
__unserialize(mixed $serialized) : mixed
Parameters
- $serialized : mixed
Return values
mixed —__wakeup()
public
__wakeup() : mixed
Return values
mixed —catchError()
public
catchError(string $errno, string $errstr, string $errfile, string $errline) : mixed
Parameters
- $errno : string
- $errstr : string
- $errfile : string
- $errline : string
Return values
mixed —clearCache()
public
static clearCache() : mixed
Return values
mixed —createChannelRoute()
public
createChannelRoute(mixed $nodeid) : mixed
Parameters
- $nodeid : mixed
Return values
mixed —createConversationRoute()
public
createConversationRoute(mixed $channelRoute) : mixed
Parameters
- $channelRoute : mixed
Return values
mixed —fixRoutes()
public
fixRoutes() : array<string|int, mixed>|bool
Return values
array<string|int, mixed>|bool —getContentInstance()
public
static getContentInstance(mixed $contenttypeid) : mixed
Parameters
- $contenttypeid : mixed
Return values
mixed —instance()
Returns singleton instance of self.
public
static instance(mixed $class) : vB_PageCache
Parameters
- $class : mixed
Return values
vB_PageCache —- Reference to singleton instance of the cache handler
monitorWords()
Checks if the text contains monitored words, and if so, sends notifications to admins and moderators if the setting is on.
public
monitorWords(mixed $text, mixed $type, mixed $nodeid[, mixed $userid = null ][, mixed $insertNotifications = true ], mixed $currentuserid) : mixed
Parameters
- $text : mixed
- $type : mixed
- $nodeid : mixed
- $userid : mixed = null
- $insertNotifications : mixed = true
- $currentuserid : mixed
Return values
mixed —checkAdvancedSearchRoute()
protected
checkAdvancedSearchRoute() : mixed
Return values
mixed —checkConversationRoutes()
protected
checkConversationRoutes() : mixed
Return values
mixed —checkForumHome()
protected
checkForumHome() : mixed
Return values
mixed —checkHomePage()
protected
checkHomePage() : mixed
Return values
mixed —checkPageInfo()
Check all channel and conversation routes. Make sure the mapping between route arguments page and page routeid is clean.
protected
checkPageInfo() : mixed
Return values
mixed —checkPageTemplate()
protected
checkPageTemplate(mixed $page) : mixed
Parameters
- $page : mixed
Return values
mixed —checkPrefixes()
Check all routeprefixes. Make sure the hierarchy is clean. Urlident should match prefix, and child prefix should match parent.
protected
checkPrefixes() : mixed
Return values
mixed —checkSearchRoute()
protected
checkSearchRoute() : mixed
Return values
mixed —clearBadRedirects()
protected
clearBadRedirects() : mixed
Return values
mixed —connectRouteToPage()
protected
connectRouteToPage(mixed $routeGuid, mixed $pageGuid, mixed $identKey) : mixed
Parameters
- $routeGuid : mixed
- $pageGuid : mixed
- $identKey : mixed
Return values
mixed —createPagePhrases()
protected
createPagePhrases(mixed $title, mixed $description, mixed $guid) : mixed
Parameters
- $title : mixed
- $description : mixed
- $guid : mixed
Return values
mixed —deleteUnusedRoutes()
protected
deleteUnusedRoutes() : mixed
Return values
mixed —fetchPhrase()
protected
fetchPhrase(mixed $key[, mixed $params = array() ]) : mixed
Parameters
- $key : mixed
- $params : mixed = array()
Return values
mixed —fixChannelRoute()
protected
fixChannelRoute(mixed $route, mixed $nodeid[, mixed $page = false ]) : mixed
Parameters
- $route : mixed
- $nodeid : mixed
- $page : mixed = false
Return values
mixed —fixPageTemplate()
checks and if necessary creates a new pagetemplate record
protected
fixPageTemplate( $routeInfo) : mixed
Parameters
Return values
mixed —fixPounds()
protected
fixPounds() : mixed
Return values
mixed —getDefaults()
protected
getDefaults() : mixed
Return values
mixed —getLibraryClassNameInternal()
protected
static getLibraryClassNameInternal(mixed $controller) : mixed
Parameters
- $controller : mixed
Return values
mixed —makeChannelPage()
protected
makeChannelPage(mixed $routeid, mixed $node) : either
Parameters
- $routeid : mixed
- $node : mixed
Return values
either —an integer or an error array
makeConversationPage()
protected
makeConversationPage(mixed $routeid, mixed $node) : int
Parameters
- $routeid : mixed
- $node : mixed
Return values
int —pageid of new page
makeRouteGuidUnique()
protected
makeRouteGuidUnique(mixed $routeid, mixed $guid) : mixed
Parameters
- $routeid : mixed
- $guid : mixed
Return values
mixed —removePound()
protected
removePound(mixed $routeRec) : mixed
Parameters
- $routeRec : mixed