OXID eShop CE  6.1.5
OxidEsales\EshopCommunity\Application\Model\Content Class Reference
+ Inheritance diagram for OxidEsales\EshopCommunity\Application\Model\Content:
+ Collaboration diagram for OxidEsales\EshopCommunity\Application\Model\Content:

Public Member Functions

 __get ($sName)
 
 __construct ()
 
 getExpanded ()
 
 setCategoryId ($sCategoryId)
 
 getCategoryId ()
 
 loadByIdent ($loadId, $onlyActive=false)
 
 getLoadId ()
 
 isActive ()
 
 assign ($dbRecord)
 
 getBaseSeoLink ($iLang)
 
 getLink ($iLang=null)
 
 getBaseStdLink ($iLang, $blAddId=true, $blFull=true)
 
 getStdLink ($iLang=null, $aParams=[])
 
 delete ($sOXID=null)
 
 save ()
 
 getTermsVersion ()
 
 setType ($sValue)
 
 getType ()
 
 setTitle ($sValue)
 
 getTitle ()
 

Protected Member Functions

 _loadFromDb ($sLoadId)
 
 assignContentData ($fetchedContent, $onlyActive=false)
 
 filterInactive ($data, $checkIfActive=false)
 
 _setFieldData ($sFieldName, $sValue, $iDataType=\OxidEsales\Eshop\Core\Field::T_TEXT)
 
 _getFieldData ($sFieldName)
 

Protected Attributes

 $_sClassName = 'oxcontent'
 
 $_aSeoUrls = []
 
 $_sParentCatId = null
 
 $_blExpanded = null
 
 $_blIsSeoObject = true
 
 $_sCategoryId
 

Detailed Description

Content manager. Base object for content pages

Constructor & Destructor Documentation

◆ __construct()

OxidEsales\EshopCommunity\Application\Model\Content::__construct ( )

Class constructor, initiates parent constructor (parent::oxI18n()).

Member Function Documentation

◆ __get()

OxidEsales\EshopCommunity\Application\Model\Content::__get (   $sName)

Extra getter to guarantee compatibility with templates.

Parameters
string$sNameparameter name
Returns
mixed

◆ _getFieldData()

OxidEsales\EshopCommunity\Application\Model\Content::_getFieldData (   $sFieldName)
protected

Get field data

Parameters
string$sFieldNamename of the field which value to get
Returns
mixed

◆ _loadFromDb()

OxidEsales\EshopCommunity\Application\Model\Content::_loadFromDb (   $sLoadId)
protected

Get data from db.

Parameters
string$sLoadIdid
Returns
array

◆ _setFieldData()

OxidEsales\EshopCommunity\Application\Model\Content::_setFieldData (   $sFieldName,
  $sValue,
  $iDataType = \OxidEsales\Eshop\Core\Field::T_TEXT 
)
protected

Sets data field value.

Parameters
string$sFieldNameindex OR name (eg. 'oxarticles__oxtitle') of a data field to set
string$sValuevalue of data field
int$iDataTypefield type
Returns
null

◆ assign()

OxidEsales\EshopCommunity\Application\Model\Content::assign (   $dbRecord)

Replace the "&" into "&" and call base class.

Parameters
array$dbRecorddatabase record

◆ assignContentData()

OxidEsales\EshopCommunity\Application\Model\Content::assignContentData (   $fetchedContent,
  $onlyActive = false 
)
protected

Assign content data, filter inactive if needed.

Parameters
array$fetchedContentItem data to assign
bool$onlyActiveOnly assign if item is active
Returns
bool

◆ delete()

OxidEsales\EshopCommunity\Application\Model\Content::delete (   $sOXID = null)

Delete this object from the database, returns true on success.

Parameters
string$sOXIDObject ID(default null)
Returns
bool

◆ filterInactive()

OxidEsales\EshopCommunity\Application\Model\Content::filterInactive (   $data,
  $checkIfActive = false 
)
protected

Decide if content item can be loaded by checking item activity if needed

Parameters
array$data
bool$checkIfActive
Returns
array | null

◆ getBaseSeoLink()

OxidEsales\EshopCommunity\Application\Model\Content::getBaseSeoLink (   $iLang)

Returns raw content seo url

Parameters
int$iLanglanguage id
Returns
string

◆ getBaseStdLink()

OxidEsales\EshopCommunity\Application\Model\Content::getBaseStdLink (   $iLang,
  $blAddId = true,
  $blFull = true 
)

Returns base dynamic url: shopurl/index.php?cl=details

Parameters
int$iLanglanguage id
bool$blAddIdadd current object id to url or not
bool$blFullreturn full including domain name [optional]
Returns
string

◆ getCategoryId()

OxidEsales\EshopCommunity\Application\Model\Content::getCategoryId ( )

Returns category id.

Returns
string

◆ getExpanded()

OxidEsales\EshopCommunity\Application\Model\Content::getExpanded ( )

Returns the expanded state of the content category.

Returns
bool

◆ getLink()

OxidEsales\EshopCommunity\Application\Model\Content::getLink (   $iLang = null)

getLink returns link for this content in the frontend.

Parameters
int$iLanglanguage id [optional]
Returns
string

◆ getLoadId()

OxidEsales\EshopCommunity\Application\Model\Content::getLoadId ( )

Returns unique object id.

Returns
string

◆ getStdLink()

OxidEsales\EshopCommunity\Application\Model\Content::getStdLink (   $iLang = null,
  $aParams = [] 
)

Returns standard URL to product.

Parameters
integer$iLanglanguage
array$aParamsadditional params to use [optional]
Returns
string

◆ getTermsVersion()

OxidEsales\EshopCommunity\Application\Model\Content::getTermsVersion ( )

Returns latest terms version id.

Returns
string

◆ getTitle()

OxidEsales\EshopCommunity\Application\Model\Content::getTitle ( )

Return title of content

Returns
string

◆ getType()

OxidEsales\EshopCommunity\Application\Model\Content::getType ( )

Return type of content

Returns
integer

◆ isActive()

OxidEsales\EshopCommunity\Application\Model\Content::isActive ( )

Returns unique object id.

Returns
string

◆ loadByIdent()

OxidEsales\EshopCommunity\Application\Model\Content::loadByIdent (   $loadId,
  $onlyActive = false 
)

Loads Content by using field oxloadid instead of oxid.

Parameters
string$loadIdcontent load ID
string$onlyActiveselection state - active/inactive
Returns
bool

◆ save()

OxidEsales\EshopCommunity\Application\Model\Content::save ( )

Save this Object to database, insert or update as needed.

Returns
mixed

◆ setCategoryId()

OxidEsales\EshopCommunity\Application\Model\Content::setCategoryId (   $sCategoryId)

Sets category id.

Parameters
string$sCategoryId

◆ setTitle()

OxidEsales\EshopCommunity\Application\Model\Content::setTitle (   $sValue)

Set title of content

Parameters
string$sValuetitle value

◆ setType()

OxidEsales\EshopCommunity\Application\Model\Content::setType (   $sValue)

Set type of content.

Parameters
string$sValuetype value

Member Data Documentation

◆ $_aSeoUrls

OxidEsales\EshopCommunity\Application\Model\Content::$_aSeoUrls = []
protected

◆ $_blExpanded

OxidEsales\EshopCommunity\Application\Model\Content::$_blExpanded = null
protected

◆ $_blIsSeoObject

OxidEsales\EshopCommunity\Application\Model\Content::$_blIsSeoObject = true
protected

◆ $_sCategoryId

OxidEsales\EshopCommunity\Application\Model\Content::$_sCategoryId
protected

◆ $_sClassName

OxidEsales\EshopCommunity\Application\Model\Content::$_sClassName = 'oxcontent'
protected

◆ $_sParentCatId

OxidEsales\EshopCommunity\Application\Model\Content::$_sParentCatId = null
protected

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