Content manager. Base object for content pages
◆ __construct()
OxidEsales\EshopCommunity\Application\Model\Content::__construct |
( |
| ) |
|
Class constructor, initiates parent constructor (parent::oxI18n()).
◆ __get()
OxidEsales\EshopCommunity\Application\Model\Content::__get |
( |
|
$sName | ) |
|
Extra getter to guarantee compatibility with templates.
- Parameters
-
string | $sName | parameter name |
- Returns
- mixed
◆ _getFieldData()
OxidEsales\EshopCommunity\Application\Model\Content::_getFieldData |
( |
|
$sFieldName | ) |
|
|
protected |
Get field data
- Parameters
-
string | $sFieldName | name of the field which value to get |
- Returns
- mixed
◆ _loadFromDb()
OxidEsales\EshopCommunity\Application\Model\Content::_loadFromDb |
( |
|
$sLoadId | ) |
|
|
protected |
Get data from db.
- Parameters
-
- 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 | $sFieldName | index OR name (eg. 'oxarticles__oxtitle') of a data field to set |
string | $sValue | value of data field |
int | $iDataType | field type |
- Returns
- null
◆ assign()
OxidEsales\EshopCommunity\Application\Model\Content::assign |
( |
|
$dbRecord | ) |
|
Replace the "&" into "&" and call base class.
- Parameters
-
array | $dbRecord | database record |
◆ assignContentData()
OxidEsales\EshopCommunity\Application\Model\Content::assignContentData |
( |
|
$fetchedContent, |
|
|
|
$onlyActive = false |
|
) |
| |
|
protected |
Assign content data, filter inactive if needed.
- Parameters
-
array | $fetchedContent | Item data to assign |
bool | $onlyActive | Only 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 | $sOXID | Object 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
-
- 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 | $iLang | language id |
bool | $blAddId | add current object id to url or not |
bool | $blFull | return 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 | $iLang | language 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 | $iLang | language |
array | $aParams | additional 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 | $loadId | content load ID |
string | $onlyActive | selection 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
-
◆ setTitle()
OxidEsales\EshopCommunity\Application\Model\Content::setTitle |
( |
|
$sValue | ) |
|
Set title of content
- Parameters
-
◆ setType()
OxidEsales\EshopCommunity\Application\Model\Content::setType |
( |
|
$sValue | ) |
|
Set type of content.
- Parameters
-
◆ $_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: