Public Member Functions | Protected Member Functions | Protected Attributes

Content Class Reference

Inheritance diagram for Content:
Collaboration diagram for Content:

List of all members.

Public Member Functions

 getViewId ()
 render ()
 getContentCategory ()
 showPlainTemplate ()
 getContentId ()
 getContent ()
 getBreadCrumb ()
 getTitle ()
 showRdfa ()
 getContentPageTpl ()
 getBusinessEntityExtends ()
 getNotMappedToRDFaPayments ()
 getNotMappedToRDFaDeliverySets ()
 getDeliveryChargeSpecs ()
 getDeliveryList ()
 getRdfaVAT ()
 getRdfaPriceValidity ()

Protected Member Functions

 _canShowContent ($sContentIdent)
 _prepareMetaDescription ($sMeta, $iLength=200, $blDescTag=false)
 _prepareMetaKeyword ($sKeywords, $blRemoveDuplicatedWords=true)
 _getSeoObjectId ()
 _getSubject ($iLang)
 _getTplName ()

Protected Attributes

 $_sContentId = null
 $_oContent = null
 $_sThisTemplate = 'page/info/content.tpl'
 $_sThisPlainTemplate = 'page/info/content_plain.tpl'
 $_oContentCat = null
 $_aPsAllowedContents = array("oxagb", "oxrightofwithdrawal", "oximpressum")
 $_sContentTitle = null
 $_blBargainAction = true
 $_sBusinessTemplate = 'rdfa/content/inc/business_entity.tpl'
 $_sDeliveryTemplate = 'rdfa/content/inc/delivery_charge.tpl'
 $_sPaymentTemplate = 'rdfa/content/inc/payment_charge.tpl'
 $_aBusinessEntityExtends

Detailed Description

CMS - loads pages and displays it

Definition at line 6 of file content.php.


Member Function Documentation

Content._canShowContent ( sContentIdent  )  [protected]

Checks if content can be shown

Parameters:
string $sContentIdent ident of content to display
Returns:
bool

Definition at line 160 of file content.php.

Content._getSeoObjectId (  )  [protected]

Returns active content id to load its seo meta info

Returns:
string

Reimplemented from oxUBase.

Reimplemented in Credits.

Definition at line 253 of file content.php.

Content._getSubject ( iLang  )  [protected]

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

Parameters:
int $iLang language id
Returns:
object

Reimplemented from oxUBase.

Definition at line 318 of file content.php.

Content._getTplName (  )  [protected]

Returns name of template

Returns:
string

Definition at line 328 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 182 of file content.php.

Content._prepareMetaKeyword ( sKeywords,
blRemoveDuplicatedWords = true 
) [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
bool $blRemoveDuplicatedWords remove dublicated words
Returns:
string

Reimplemented from oxUBase.

Definition at line 200 of file content.php.

Content.getBreadCrumb (  ) 

Returns Bread Crumb - you are here page1/page2/page3...

Returns:
array

Reimplemented from oxUBase.

Definition at line 353 of file content.php.

Content.getBusinessEntityExtends (  ) 

Gets extended business entity data

Returns:
object

Definition at line 421 of file content.php.

Content.getContent (  ) 

Template variable getter. Returns active content

Returns:
object

Reimplemented in Credits.

Definition at line 298 of file content.php.

Content.getContentCategory (  ) 

If current content is assigned to category returns its object

Returns:
oxcontent

Reimplemented from oxUBase.

Definition at line 214 of file content.php.

Content.getContentId (  ) 

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

Returns:
object

Definition at line 264 of file content.php.

Content.getContentPageTpl (  ) 

Returns template name wich content page to specify: business entity data, payment charge specifications or delivery charge

Returns:
array

Definition at line 398 of file content.php.

Content.getDeliveryChargeSpecs (  ) 

Returns delivery methods with assigned deliverysets.

Returns:
object

Definition at line 468 of file content.php.

Content.getDeliveryList (  ) 

Template variable getter. Returns delivery list

Returns:
object

Definition at line 489 of file content.php.

Content.getNotMappedToRDFaDeliverySets (  ) 

Returns an object including all delivery sets which are not mapped to a predefined GoodRelations delivery method. This object is used for defining new instances of gr:DeliveryMethods at content pages.

Returns:
object

Definition at line 455 of file content.php.

Content.getNotMappedToRDFaPayments (  ) 

Returns an object including all payments which are not mapped to a predefined GoodRelations payment method. This object is used for defining new instances of gr:PaymentMethods at content pages.

Returns:
object

Definition at line 440 of file content.php.

Content.getRdfaPriceValidity (  ) 

Returns rdfa VAT

Returns:
bool

Definition at line 514 of file content.php.

Content.getRdfaVAT (  ) 

Returns rdfa VAT

Returns:
bool

Definition at line 504 of file content.php.

Content.getTitle (  ) 

Template variable getter. Returns tag title

Returns:
string

Reimplemented from oxUBase.

Definition at line 372 of file content.php.

Content.getViewId (  ) 

Returns prefix ID used by template engine.

Returns:
string $this->_sViewId

Reimplemented from oxUBase.

Definition at line 105 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

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

Reimplemented from oxUBase.

Definition at line 121 of file content.php.

Content.showPlainTemplate (  ) 

Returns true if user forces to display plain template or if private sales switched ON and user is not logged in

Returns:
bool

Definition at line 233 of file content.php.

Content.showRdfa (  ) 

Returns if page has rdfa

Returns:
bool

Reimplemented from oxView.

Definition at line 387 of file content.php.


Member Data Documentation

Content.$_aBusinessEntityExtends [protected]
Initial value:
 array("sRDFaLogoUrl",
                                               "sRDFaLongitude",
                                               "sRDFaLatitude",
                                               "sRDFaGLN",
                                               "sRDFaNAICS",
                                               "sRDFaISIC",
                                               "sRDFaDUNS")

Definition at line 92 of file content.php.

Content.$_aPsAllowedContents = array("oxagb", "oxrightofwithdrawal", "oximpressum") [protected]

Definition at line 49 of file content.php.

Content.$_blBargainAction = true [protected]

Reimplemented from oxUBase.

Definition at line 63 of file content.php.

Content.$_oContent = null [protected]

Default content

Returns:
oxContent

Reimplemented from oxUBase.

Definition at line 21 of file content.php.

Content.$_oContentCat = null [protected]

Definition at line 42 of file content.php.

Content.$_sBusinessTemplate = 'rdfa/content/inc/business_entity.tpl' [protected]

Definition at line 70 of file content.php.

Content.$_sContentId = null [protected]

Default content id

Returns:
string

Reimplemented from oxUBase.

Reimplemented in Credits.

Definition at line 14 of file content.php.

Content.$_sContentTitle = null [protected]

Definition at line 56 of file content.php.

Content.$_sDeliveryTemplate = 'rdfa/content/inc/delivery_charge.tpl' [protected]

Definition at line 77 of file content.php.

Content.$_sPaymentTemplate = 'rdfa/content/inc/payment_charge.tpl' [protected]

Definition at line 84 of file content.php.

Content.$_sThisPlainTemplate = 'page/info/content_plain.tpl' [protected]

Definition at line 35 of file content.php.

Content.$_sThisTemplate = 'page/info/content.tpl' [protected]

Reimplemented from oxView.

Definition at line 28 of file content.php.


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