Public Member Functions | Protected Member Functions | Protected Attributes

oxContent Class Reference

Inheritance diagram for oxContent:
Collaboration diagram for oxContent:

List of all members.

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 ()
 getType ()

Protected Member Functions

 _loadFromDb ($sLoadId)
 _setFieldData ($sFieldName, $sValue, $iDataType=oxField::T_TEXT)

Protected Attributes

 $_sClassName = 'oxcontent'
 $_aSeoUrls = array()
 $_sParentCatId = null
 $_blExpanded = null
 $_blIsSeoObject = true
 $_sCategoryId

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()).

Definition at line 72 of file oxcontent.php.


Member Function Documentation

oxContent.__get ( sName  ) 

Extra getter to guarantee compatibility with templates.

Parameters:
string $sName parameter name
Returns:
mixed

Definition at line 59 of file oxcontent.php.

oxContent._loadFromDb ( sLoadId  )  [protected]

Get data from db.

Parameters:
string $sLoadId id
Returns:
array

Definition at line 119 of file oxcontent.php.

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

Definition at line 322 of file oxcontent.php.

oxContent.assign ( dbRecord  ) 

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

Parameters:
array $dbRecord database record
Returns:
null

Definition at line 201 of file oxcontent.php.

oxContent.delete ( sOXID = null  ) 

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

Parameters:
string $sOXID Object ID(default null)
Returns:
bool

Definition at line 338 of file oxcontent.php.

oxContent.getBaseSeoLink ( iLang  ) 

Returns raw content seo url

Parameters:
int $iLang language id
Returns:
string

Definition at line 219 of file oxcontent.php.

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

Implements oxIUrl.

Definition at line 257 of file oxcontent.php.

oxContent.getCategoryId (  ) 

Returns category id.

Returns:
string

Definition at line 106 of file oxcontent.php.

oxContent.getExpanded (  ) 

Returns the expanded state of the content category.

Returns:
bool

Definition at line 83 of file oxcontent.php.

oxContent.getLink ( iLang = null  ) 

getLink returns link for this content in the frontend.

Parameters:
int $iLang language id [optional]
Returns:
string

Implements oxIUrl.

Definition at line 231 of file oxcontent.php.

oxContent.getLoadId (  ) 

Returns unique object id.

Returns:
string

Definition at line 179 of file oxcontent.php.

oxContent.getStdLink ( iLang = null,
aParams = array() 
)

Returns standard URL to product.

Parameters:
integer $iLang language
array $aParams additional params to use [optional]
Returns:
string

Implements oxIUrl.

Definition at line 304 of file oxcontent.php.

oxContent.getTermsVersion (  ) 

Returns latest terms version id.

Returns:
string

Definition at line 375 of file oxcontent.php.

oxContent.getType (  ) 

Returns type of content.

Returns:
integer

Definition at line 387 of file oxcontent.php.

oxContent.isActive (  ) 

Returns unique object id.

Returns:
string

Definition at line 189 of file oxcontent.php.

oxContent.loadByIdent ( sLoadId  ) 

Loads Content by using field oxloadid instead of oxid.

Parameters:
string $sLoadId content load ID
Returns:
bool

Definition at line 160 of file oxcontent.php.

oxContent.save (  ) 

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

Returns:
mixed

Definition at line 356 of file oxcontent.php.

oxContent.setCategoryId ( sCategoryId  ) 

Sets category id.

Parameters:
string $sCategoryId

Definition at line 96 of file oxcontent.php.


Member Data Documentation

oxContent.$_aSeoUrls = array() [protected]

Definition at line 22 of file oxcontent.php.

oxContent.$_blExpanded = null [protected]

Definition at line 36 of file oxcontent.php.

oxContent.$_blIsSeoObject = true [protected]

Definition at line 43 of file oxcontent.php.

oxContent.$_sCategoryId [protected]

Definition at line 50 of file oxcontent.php.

oxContent.$_sClassName = 'oxcontent' [protected]

Definition at line 15 of file oxcontent.php.

oxContent.$_sParentCatId = null [protected]

Definition at line 29 of file oxcontent.php.


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