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

Public Member Functions

 __construct ()
 
 assign ($dbRecord)
 
 getGroups ()
 
 inGroup ($sGroupID)
 
 delete ($sOxid=null)
 
 getLongDesc ()
 

Protected Member Functions

 _update ()
 
 _insert ()
 
 _setFieldData ($sFieldName, $sValue, $iDataType=\OxidEsales\Eshop\Core\Field::T_TEXT)
 

Protected Attributes

 $_oGroups = null
 
 $_sClassName = 'oxnews'
 

Detailed Description

News manager. Performs news text collection. News may be sorted by user categories (only these user may read news), etc.

Deprecated:
since v.5.3.0 (2016-06-17); The Admin Menu: Customer Info -> News feature will be moved to a module in v6.0.0

Constructor & Destructor Documentation

◆ __construct()

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

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

Member Function Documentation

◆ _insert()

OxidEsales\EshopCommunity\Application\Model\News::_insert ( )
protected

Inserts object details to DB, returns true on success.

Returns
bool

◆ _setFieldData()

OxidEsales\EshopCommunity\Application\Model\News::_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

◆ _update()

OxidEsales\EshopCommunity\Application\Model\News::_update ( )
protected

Updates object information in DB.

◆ assign()

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

Assigns object data.

Parameters
string$dbRecorddatabase record to be assigned

◆ delete()

OxidEsales\EshopCommunity\Application\Model\News::delete (   $sOxid = null)

Deletes object information from DB, returns true on success.

Parameters
string$sOxidObject ID (default null)
Returns
bool

◆ getGroups()

OxidEsales\EshopCommunity\Application\Model\News::getGroups ( )

Returns list of user groups assigned to current news object

Returns
oxlist

◆ getLongDesc()

OxidEsales\EshopCommunity\Application\Model\News::getLongDesc ( )

get long description, parsed through smarty

Returns
string

◆ inGroup()

OxidEsales\EshopCommunity\Application\Model\News::inGroup (   $sGroupID)

Checks if this object is in group, returns true on success.

Parameters
string$sGroupIDuser group ID
Returns
bool

Member Data Documentation

◆ $_oGroups

OxidEsales\EshopCommunity\Application\Model\News::$_oGroups = null
protected

◆ $_sClassName

OxidEsales\EshopCommunity\Application\Model\News::$_sClassName = 'oxnews'
protected

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