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

Public Member Functions

 loadNews ($iFrom=0, $iLimit=10)
 
 getCount ()
 
 setUser ($oUser)
 
 getUser ()
 

Protected Attributes

 $_sObjectsInListName = 'oxnews'
 
 $_oUser = null
 

Detailed Description

News list manager. Creates news objects, fetches its data.

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

Member Function Documentation

◆ getCount()

OxidEsales\EshopCommunity\Application\Model\NewsList::getCount ( )

Returns count of all entries.

Returns
integer $iRecCnt

◆ getUser()

OxidEsales\EshopCommunity\Application\Model\NewsList::getUser ( )

News list user getter

Returns
\OxidEsales\Eshop\Application\Model\User

◆ loadNews()

OxidEsales\EshopCommunity\Application\Model\NewsList::loadNews (   $iFrom = 0,
  $iLimit = 10 
)

Loads news stored in DB, filtered by user groups, returns array, filled with objects, that keeps news data.

Parameters
integer$iFromnumber from which start selecting
integer$iLimitLimit of records to fetch from DB(default 0)

◆ setUser()

OxidEsales\EshopCommunity\Application\Model\NewsList::setUser (   $oUser)

News list user setter

Parameters
\OxidEsales\Eshop\Application\Model\User$oUseruser object

Member Data Documentation

◆ $_oUser

OxidEsales\EshopCommunity\Application\Model\NewsList::$_oUser = null
protected

Ref. to user object

◆ $_sObjectsInListName

OxidEsales\EshopCommunity\Application\Model\NewsList::$_sObjectsInListName = 'oxnews'
protected

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