class vB_Library_VB4_Functions extends vB_Library

vB_Library_VB4_Functions

Traits

Properties

static protected $instance from vB_Library
protected $baseurl_corecdn

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

getPreview($text, $length = 100)

No description

pageNav($pagenumber, $perpage, $results)

No description

[integer]
getUsersPostPerPage([integer] $perpage)

[Resolves -1 and 0 as perpage values for users]

avatarUrl($userid)

No description

parseAttachments($attaches)

No description

Array
parsePoll(Array $node)

Creates the "poll" bits for a poll

Array
parseLinkAndVideo(Array $node)

Creates the "link_attachment" bits for a link or video post

Array
parseGallery(Array $node, Array $publicAttachDataArray)

Creates the "gallery" bits for a gallery post.

parseArticleComment($commentNode)

No description

parseArticle($node, $page = 1)

No description

separateGalleryPhotosFromAttachment($node)

No description

parsePost($node)

No description

getHVToken()

No description

getErrorResponse($result)

No description

filterUserInfo($userinfo)

No description

parseThread($node)

No description

getPrefixes($channel)

No description

getUsersBlogChannel()

No description

getGlobalBlogCategories()

No description

getLocalBlogCategories($userid = 0)

No description

parseBlogComment($node)

No description

parseBlogHeader($node)

No description

parseBlogEntrySearch($node)

No description

parseBlogEntry($node)

No description

parseArticleSearch($node, $parent)

No description

parseForumInfo($node)

No description

parseThreadInfo($node)

No description

parseForum($node)

No description

safeBuildUrl($routeid, $routeData)

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 23
getPreview($text, $length = 100)

Parameters

$text
$length

at line 33
pageNav($pagenumber, $perpage, $results)

Parameters

$pagenumber
$perpage
$results

at line 114
[integer] getUsersPostPerPage([integer] $perpage)

[Resolves -1 and 0 as perpage values for users]

Parameters

[integer] $perpage

Return Value

[integer] $perpage [the correct number]

at line 126
avatarUrl($userid)

Parameters

$userid

at line 173
parseAttachments($attaches)

Parameters

$attaches

at line 331
protected Array parsePoll(Array $node)

Creates the "poll" bits for a poll

Parameters

Array $node node content array, must have content.options

Return Value

Array "poll" array used by mobile app

at line 391
protected Array parseLinkAndVideo(Array $node)

Creates the "link_attachment" bits for a link or video post

Parameters

Array $node node content array, must have content.url, .url_title & .url_meta, and optionally filedataid (link) OR thumburl (video)

Return Value

Array "link_attachment" array used by mobile app

at line 457
protected Array parseGallery(Array $node, Array $publicAttachDataArray)

Creates the "gallery" bits for a gallery post.

Parameters

Array $node node content array, must have content.photo
Array $publicAttachDataArray Array created by separateGalleryPhotosFromAttachment()

Return Value

Array "gallery" array used by mobile app

at line 854
parseArticleComment($commentNode)

Parameters

$commentNode

at line 867
parseArticle($node, $page = 1)

Parameters

$node
$page

at line 912
protected separateGalleryPhotosFromAttachment($node)

Parameters

$node

at line 939
parsePost($node)

Parameters

$node

at line 1128
getHVToken()

at line 1137
getErrorResponse($result)

Parameters

$result

at line 1166
filterUserInfo($userinfo)

Parameters

$userinfo

at line 1174
parseThread($node)

Parameters

$node

at line 1244
getPrefixes($channel)

Parameters

$channel

at line 1271
getUsersBlogChannel()

at line 1296
getGlobalBlogCategories()

at line 1302
getLocalBlogCategories($userid = 0)

Parameters

$userid

at line 1313
parseBlogComment($node)

Parameters

$node

at line 1330
parseBlogHeader($node)

Parameters

$node

at line 1347
parseBlogEntrySearch($node)

Parameters

$node

at line 1372
parseBlogEntry($node)

Parameters

$node

at line 1416
parseArticleSearch($node, $parent)

Parameters

$node
$parent

at line 1537
parseForumInfo($node)

Parameters

$node

at line 1549
parseThreadInfo($node)

Parameters

$node

at line 1562
parseForum($node)

Parameters

$node

at line 1625
safeBuildUrl($routeid, $routeData)

Parameters

$routeid
$routeData