vB_PageRestore
in package
Uses
vB_Trait_NoSerialize
Table of Contents
Methods
- __construct() : mixed
- Constructor
- __serialize() : array<string|int, mixed>
- __sleep() : array<string|int, mixed>
- __unserialize() : void
- __wakeup() : void
- getDbPageTemplateByPageTemplateId() : array<string|int, mixed>
- Returns a page template array from the database
- getDbRouteByRouteId() : array<string|int, mixed>
- Returns a route array from the database
- getFileVersions() : array<string|int, mixed>
- Returns the array of file names and versions for display to user.
- getMatchingPageFromDbByXmlGuid() : array<string|int, mixed>
- Returns an array of page information for the matching page. The page is matched based on the route "name". If no route name is available, it is matched based on the page GUID.
- getPageFromXmlByGuid() : array<string|int, mixed>
- Returns the page array from the XML file, based on the passed GUID
- getPagesFromXml() : array<string|int, mixed>
- Returns an array of all pages from the XML file.
- getPageTitleByGuid() : mixed
- Returns the phrased page title based on the GUID
- getXmlPageTemplateByPageGuid() : array<string|int, mixed>
- Returns a page template array from the XML file. The page template is matched from the passed Page GUID.
- getXmlRouteByPageGuid() : array<string|int, mixed>
- Returns a route array from the XML file. The route is matched from the passed Page GUID.
- restorePage() : mixed
- Restores a page.
Methods
__construct()
Constructor
public
__construct(mixed $xmldir) : mixed
Parameters
- $xmldir : mixed
__serialize()
public
__serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>__unserialize()
public
__unserialize(array<string|int, mixed> $serialized) : void
Parameters
- $serialized : array<string|int, mixed>
__wakeup()
public
__wakeup() : void
getDbPageTemplateByPageTemplateId()
Returns a page template array from the database
public
getDbPageTemplateByPageTemplateId(mixed $pagetemplateid) : array<string|int, mixed>
Parameters
- $pagetemplateid : mixed
Return values
array<string|int, mixed> —Array of page template information from the database
getDbRouteByRouteId()
Returns a route array from the database
public
getDbRouteByRouteId(mixed $routeid) : array<string|int, mixed>
Parameters
- $routeid : mixed
Return values
array<string|int, mixed> —Array of route information from the database
getFileVersions()
Returns the array of file names and versions for display to user.
public
getFileVersions() : array<string|int, mixed>
Return values
array<string|int, mixed> —File names and versions
getMatchingPageFromDbByXmlGuid()
Returns an array of page information for the matching page. The page is matched based on the route "name". If no route name is available, it is matched based on the page GUID.
public
getMatchingPageFromDbByXmlGuid(mixed $guid) : array<string|int, mixed>
Parameters
- $guid : mixed
Return values
array<string|int, mixed> —Array of page information from the database
getPageFromXmlByGuid()
Returns the page array from the XML file, based on the passed GUID
public
getPageFromXmlByGuid(mixed $guid) : array<string|int, mixed>
Parameters
- $guid : mixed
Return values
array<string|int, mixed> —Array of page information from the XML file
getPagesFromXml()
Returns an array of all pages from the XML file.
public
getPagesFromXml() : array<string|int, mixed>
Return values
array<string|int, mixed> —Array of page information from the XML file
getPageTitleByGuid()
Returns the phrased page title based on the GUID
public
getPageTitleByGuid(mixed $guid) : mixed
Parameters
- $guid : mixed
getXmlPageTemplateByPageGuid()
Returns a page template array from the XML file. The page template is matched from the passed Page GUID.
public
getXmlPageTemplateByPageGuid(mixed $guid) : array<string|int, mixed>
Parameters
- $guid : mixed
Return values
array<string|int, mixed> —Array of page template information from the XML file
getXmlRouteByPageGuid()
Returns a route array from the XML file. The route is matched from the passed Page GUID.
public
getXmlRouteByPageGuid(mixed $guid) : array<string|int, mixed>
Parameters
- $guid : mixed
Return values
array<string|int, mixed> —Array of route information from the XML file
restorePage()
Restores a page.
public
restorePage(mixed $guid[, mixed $printMessage = true ]) : mixed
Specifically, this restores the page, page template, and route information so it reflects the values present at initial install. This is meant to be used only on the vBulletin default pages.
Parameters
- $guid : mixed
- $printMessage : mixed = true