Content Class Reference

Inheritance diagram for Content:

Inheritance graph
[legend]
Collaboration diagram for Content:

Collaboration graph
[legend]

List of all members.


Detailed Description

CMS - loads pages and displays it

Definition at line 6 of file content.php.


Public Member Functions

 init ()
 getViewId ()
 render ()
 getContentCategory ()
 showPlainTemplate ()
 getContentId ()
 getContent ()

Protected Member Functions

 _prepareMetaDescription ($sMeta, $iLength=200, $blDescTag=false)
 _prepareMetaKeyword ($sKeywords)
 _getSeoObjectId ()
 _getSubject ()
 _getTplName ()

Protected Attributes

 $_sContentId = null
 $_oContent = null
 $_sThisTemplate = 'content.tpl'
 $_sThisPlainTemplate = 'content_plain.tpl'
 $_oContentCat = null

Member Function Documentation

Content.init (  ) 

Unsets SEO category and call parent.init();

Returns:
null

Reimplemented from oxUBase.

Definition at line 43 of file content.php.

Content.getViewId (  ) 

Returns prefix ID used by template engine.

Returns:
string $this->_sViewId

Reimplemented from oxUBase.

Definition at line 58 of file content.php.

Content.render (  ) 

Executes parent.render(), passes template variables to template engine and generates content. Returns the name of template to render content._sThisTemplate

Template variables: oxcid, oContent

Returns:
string $this->_sThisTemplate current template file name

Reimplemented from oxUBase.

Definition at line 76 of file content.php.

Content._prepareMetaDescription ( sMeta,
iLength = 200,
blDescTag = false 
) [protected]

Returns current view meta data If $sMeta parameter comes empty, sets to it current content title

Parameters:
string $sMeta category path
int $iLength max length of result, -1 for no truncation
bool $blDescTag if true - performs additional dublicate cleaning
Returns:
string

Reimplemented from oxUBase.

Definition at line 105 of file content.php.

Content._prepareMetaKeyword ( sKeywords  )  [protected]

Returns current view keywords seperated by comma If $sKeywords parameter comes empty, sets to it current content title

Parameters:
string $sKeywords data to use as keywords
Returns:
string

Reimplemented from oxUBase.

Definition at line 121 of file content.php.

Content.getContentCategory (  ) 

If current content is assigned to category returns its object

Returns:
oxcontent

Reimplemented from oxUBase.

Definition at line 134 of file content.php.

Content.showPlainTemplate (  ) 

Returns true if user forces to display plain template

Returns:
bool

Definition at line 151 of file content.php.

Content._getSeoObjectId (  )  [protected]

Returns active content id to load its seo meta info

Returns:
string

Reimplemented from oxUBase.

Definition at line 161 of file content.php.

Content.getContentId (  ) 

Template variable getter. Returns active content id. If no content id specified, uses "impressum" content id

Returns:
object

Reimplemented from oxUBase.

Definition at line 172 of file content.php.

Content.getContent (  ) 

Template variable getter. Returns active content

Returns:
object

Reimplemented from oxUBase.

Definition at line 203 of file content.php.

Content._getSubject (  )  [protected]

returns object, assosiated with current view. (the object that is shown in frontend)

Returns:
object

Reimplemented from oxUBase.

Definition at line 220 of file content.php.

Content._getTplName (  )  [protected]

Returns name of template

Returns:
string

Definition at line 230 of file content.php.


Member Data Documentation

Content.$_sContentId = null [protected]

Default content id

Returns:
string

Reimplemented from oxUBase.

Definition at line 12 of file content.php.

Content.$_oContent = null [protected]

Default content

Returns:
oxContent

Reimplemented from oxUBase.

Definition at line 18 of file content.php.

Content.$_sThisTemplate = 'content.tpl' [protected]

Reimplemented from oxView.

Definition at line 24 of file content.php.

Content.$_sThisPlainTemplate = 'content_plain.tpl' [protected]

Definition at line 30 of file content.php.

Content.$_oContentCat = null [protected]

Definition at line 36 of file content.php.


The documentation for this class was generated from the following file:

Generated on Wed Apr 22 12:27:59 2009 for OXID eShop CE by  doxygen 1.5.5