class vB_Library_Article extends vB_Library

vB_Library_Article

Traits

Properties

static protected $instance from vB_Library
protected $articleHomeChannel

Methods

__sleep()

No description

__wakeup()

No description

__construct()

This class is based on vB_Library_Blog

static vB_PageCache
instance($class)

Returns singleton instance of self.

static 
getLibraryClassNameInternal($controller)

No description

static 
getContentInstance($contenttypeid)

No description

static 
clearCache()

No description

createArticleCategory($input)

No description

int
createChannel(array $input, int $channelid, int $channelConvTemplateid, int $channelPgTemplateId, int $ownerSystemGroupId)

Create an article category channel. This function works basically like the blog library's version

int
getArticleChannel()

No description

bool
isArticleNode($nodeId, $node = false)

Determines if the given node is under the Articles Home Channel

Details

in vB_Trait_NoSerialize at line 15
__sleep()

in vB_Trait_NoSerialize at line 20
__wakeup()

at line 26
protected __construct()

This class is based on vB_Library_Blog

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 33
createArticleCategory($input)

Parameters

$input

at line 50
int createChannel(array $input, int $channelid, int $channelConvTemplateid, int $channelPgTemplateId, int $ownerSystemGroupId)

Create an article category channel. This function works basically like the blog library's version

Parameters

array $input data array, should have standard channel data like title, parentid,
int $channelid parentid that the new channel should fall under.
int $channelConvTemplateid "Conversation" level pagetemplate to use. Typically vB_Page::getArticleConversPageTemplate()
int $channelPgTemplateId "Channel" level pagetemplate to use. Typically vB_Page::getArticleChannelPageTemplate()
int $ownerSystemGroupId

Return Value

int The nodeid of the new blog channel

at line 94
int getArticleChannel()

Return Value

int nodeid of actual Articles Home Channel

at line 116
bool isArticleNode($nodeId, $node = false)

Determines if the given node is under the Articles Home Channel

Parameters

$nodeId
$node

Return Value

bool