OXID eShop CE  4.9.10
 All Classes Files Functions Variables Pages
oxContent Class Reference
+ Inheritance diagram for oxContent:
+ Collaboration diagram for oxContent:

Public Member Functions

 __get ($sName)
 __construct ()
 getExpanded ()
 setCategoryId ($sCategoryId)
 getCategoryId ()
 loadByIdent ($sLoadId)
 getLoadId ()
 isActive ()
 assign ($dbRecord)
 getBaseSeoLink ($iLang)
 getLink ($iLang=null)
 getBaseStdLink ($iLang, $blAddId=true, $blFull=true)
 getStdLink ($iLang=null, $aParams=array())
 delete ($sOXID=null)
 save ()
 getTermsVersion ()
 setType ($sValue)
 getType ()
 setTitle ($sValue)
 getTitle ()
- Public Member Functions inherited from oxI18n
 setLanguage ($iLang=null)
 getLanguage ()
 setEnableMultilang ($blEmployMultilanguage)
 isMultilingualField ($sFieldName)
 isMultilang ()
 loadInLang ($iLanguage, $sOxid)
 modifyCacheKey ($sCacheKey, $blOverride=false)
 getAvailableInLangs ()
 getUpdateSqlFieldName ($sField)
- Public Member Functions inherited from oxBase
 getUseSkipSaveFields ()
 setUseSkipSaveFields ($blUseSkipSaveFields)
 __set ($sName, $sValue)
 __isset ($mVar)
 __clone ()
 oxClone ($oObject)
 getUpdateSeo ()
 setUpdateSeo ($blUpdateSeo)
 init ($sTableName=null, $blForceAllFields=false)
 getClassName ()
 getCoreTableName ()
 getId ()
 setId ($sOXID=null)
 setShopId ($iShopId)
 getShopId ()
 getViewName ($blForceCoreTableUsage=null)
 disableLazyLoading ()
 isDerived ()
 setIsDerived ($blVal)
 load ($sOXID)
 isLoaded ()
 buildSelectString ($aWhere=null)
 assignRecord ($sSelect)
 getFieldData ($sFieldName)
 getSelectFields ($blForceCoreTableUsage=null)
 allowDerivedUpdate ()
 allowDerivedDelete ()
 exists ($sOXID=null)
 getSqlActiveSnippet ($blForceCoreTable=null)
 beforeUpdate ($sOXID=null)
 onChange ($iAction=null, $sOXID=null)
 setInList ()
 isOx ()
 isReadOnly ()
 setReadOnly ($blReadOnly)
 getFieldNames ()
 addFieldName ($sName)
- Public Member Functions inherited from oxSuperCfg
 __call ($sMethod, $aArgs)
 getConfig ()
 setConfig ($oConfig)
 getSession ()
 setSession ($oSession)
 getUser ()
 setUser ($oUser)
 isAdmin ()
 setAdminMode ($blAdmin)

Protected Member Functions

 _loadFromDb ($sLoadId)
 _setFieldData ($sFieldName, $sValue, $iDataType=oxField::T_TEXT)
 _getFieldData ($sFieldName)
- Protected Member Functions inherited from oxI18n
 _getFieldStatus ($sFieldName)
 _getNonCachedFieldNames ($blForceFullStructure=false)
 _getFieldLang ($sFieldName)
 _setUpdateSeoOnFieldChange ($sField)
 _getUpdateFieldsForTable ($sTable, $blUseSkipSaveFields=true)
 _getUpdateFields ($blUseSkipSaveFields=true)
 _update ()
 _getLanguageSetTables ($sCoreTableName=null)
 _insert ()
 _getObjectViewName ($sTable, $sShopID=null)
 _getAllFields ($blReturnSimple=false)
 _addField ($sName, $sStatus, $sType=null, $sLength=null)
 _canFieldBeNull ($sFieldName)
- Protected Member Functions inherited from oxBase
 _removeElement2ShopRelations ($sOxId)
 _isInList ()
 _getTableFields ($sTable, $blReturnSimple=false)
 _initDataStructure ($blForceFullStructure=false)
 _getFieldLongName ($sFieldName)
 _getFieldDefaultValue ($sFieldName)
 _getUpdateFieldValue ($sFieldName, $oField)
 _isDisabledFieldCache ()
 _addSkippedSaveFieldsForMapping ()
 _disableLazyLoadingForCaching ()

Protected Attributes

 $_sClassName = 'oxcontent'
 $_aSeoUrls = array()
 $_sParentCatId = null
 $_blExpanded = null
 $_blIsSeoObject = true
 $_sCategoryId
- Protected Attributes inherited from oxI18n
 $_sClassName = 'oxI18n'
 $_iLanguage = null
 $_blEmployMultilanguage = true
- Protected Attributes inherited from oxBase
 $_sOXID = null
 $_iShopId = null
 $_blIsSimplyClonable = true
 $_sClassName = 'oxbase'
 $_sCoreTable = null
 $_sViewTable = null
 $_aFieldNames = array('oxid' => 0)
 $_sCacheKey = null
 $_blUseLazyLoading = false
 $_aSkipSaveFields = array('oxtimestamp')
 $_blUseSkipSaveFields = true
 $_sExistKey = 'oxid'
 $_blIsDerived = null
 $_blIsSeoObject = false
 $_blUpdateSeo = true
 $_blReadOnly = false
 $_blIsInList = false
 $_isLoaded = false
 $_aInnerLazyCache = null
 $_blEmployMultilanguage = false

Additional Inherited Members

- Static Protected Attributes inherited from oxBase
static $_blDisableFieldCaching = array()

Detailed Description

Content manager. Base object for content pages

Definition at line 8 of file oxcontent.php.

Constructor & Destructor Documentation

oxContent::__construct ( )

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

Reimplemented from oxI18n.

Definition at line 73 of file oxcontent.php.

Member Function Documentation

oxContent::__get (   $sName)

Extra getter to guarantee compatibility with templates.

Parameters
string$sNameparameter name
Returns
mixed

Reimplemented from oxBase.

Definition at line 60 of file oxcontent.php.

oxContent::_getFieldData (   $sFieldName)
protected

Get field data

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

Definition at line 341 of file oxcontent.php.

oxContent::_loadFromDb (   $sLoadId)
protected

Get data from db.

Parameters
string$sLoadIdid
Returns
array

Definition at line 121 of file oxcontent.php.

oxContent::_setFieldData (   $sFieldName,
  $sValue,
  $iDataType = oxField::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

Reimplemented from oxBase.

Definition at line 325 of file oxcontent.php.

oxContent::assign (   $dbRecord)

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

Parameters
array$dbRecorddatabase record
Returns
null

Reimplemented from oxBase.

Definition at line 204 of file oxcontent.php.

oxContent::delete (   $sOXID = null)

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

Parameters
string$sOXIDObject ID(default null)
Returns
bool

Reimplemented from oxI18n.

Definition at line 353 of file oxcontent.php.

oxContent::getBaseSeoLink (   $iLang)

Returns raw content seo url

Parameters
int$iLanglanguage id
Returns
string

Definition at line 222 of file oxcontent.php.

oxContent::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

Implements oxIUrl.

Definition at line 260 of file oxcontent.php.

oxContent::getCategoryId ( )

Returns category id.

Returns
string

Definition at line 108 of file oxcontent.php.

oxContent::getExpanded ( )

Returns the expanded state of the content category.

Returns
bool

Definition at line 84 of file oxcontent.php.

oxContent::getLink (   $iLang = null)

getLink returns link for this content in the frontend.

Parameters
int$iLanglanguage id [optional]
Returns
string

Implements oxIUrl.

Definition at line 234 of file oxcontent.php.

oxContent::getLoadId ( )

Returns unique object id.

Returns
string

Definition at line 182 of file oxcontent.php.

oxContent::getStdLink (   $iLang = null,
  $aParams = array() 
)

Returns standard URL to product.

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

Implements oxIUrl.

Definition at line 307 of file oxcontent.php.

oxContent::getTermsVersion ( )

Returns latest terms version id.

Returns
string

Definition at line 393 of file oxcontent.php.

oxContent::getTitle ( )

Return title of content

Returns
string

Definition at line 435 of file oxcontent.php.

oxContent::getType ( )

Return type of content

Returns
integer

Definition at line 415 of file oxcontent.php.

oxContent::isActive ( )

Returns unique object id.

Returns
string

Definition at line 192 of file oxcontent.php.

oxContent::loadByIdent (   $sLoadId)

Loads Content by using field oxloadid instead of oxid.

Parameters
string$sLoadIdcontent load ID
Returns
bool

Definition at line 162 of file oxcontent.php.

oxContent::save ( )

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

Returns
mixed

Reimplemented from oxBase.

Definition at line 373 of file oxcontent.php.

oxContent::setCategoryId (   $sCategoryId)

Sets category id.

Parameters
string$sCategoryId

Definition at line 98 of file oxcontent.php.

oxContent::setTitle (   $sValue)

Set title of content

Parameters
string$sValuetitle value

Definition at line 425 of file oxcontent.php.

oxContent::setType (   $sValue)

Set type of content.

Parameters
string$sValuetype value

Definition at line 405 of file oxcontent.php.

Member Data Documentation

oxContent::$_aSeoUrls = array()
protected

Definition at line 23 of file oxcontent.php.

oxContent::$_blExpanded = null
protected

Definition at line 37 of file oxcontent.php.

oxContent::$_blIsSeoObject = true
protected

Definition at line 44 of file oxcontent.php.

oxContent::$_sCategoryId
protected

Definition at line 51 of file oxcontent.php.

oxContent::$_sClassName = 'oxcontent'
protected

Definition at line 16 of file oxcontent.php.

oxContent::$_sParentCatId = null
protected

Definition at line 30 of file oxcontent.php.


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