Lightnote CMS - web 2.0 content management system

PageContent

Variables
$exists =  false

Indicates whether content element exists

Type
boolean
$header =  ""

Header of content element

Type
mixed
$hidden =  true

Indicates whether content element is hidden

Type
boolean
$id =  0

Id of content

Type
int
$lang =  ""

Language code of content element

Type
string
$name =  ""

Name of page content. For Text, Text & Image and RTE is empty. For Content elements and extensions is name of Content element or Extension respectively

Type
string
$pageId =  0

Page id on which content element is placed

Type
mixed
$translationId =  0

Id of page translation on which content element is placed

Type
int
$type =  ""

Type of page content: text, textimage, rte, content_element, extension

Type
int
Methods
PageContent PageContent( int $id, [bool $forceInit = true])

Constructor

Parameters:
int $id - content id
bool $forceInit - indicates whether execute Init() method, which initializes general data of content element.
void ClearCache( )

Clean ups smarty cache of content element

string GetModuleContent( )

Returns module content for "Page Browser" tab in backend

void Init( )

Initializes general properities of content element (executed in constructor)

void Remove( )

Removes content from page

string Render( $smarty)

Returns content to be displayed in frontend.

Parameters:
$smarty -
void Update( array $params)

Updates content parameters from associative array

Parameters:
array $params - associative array with parameters to update