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

Public Member Functions

 loadNews ($iFrom=0, $iLimit=10)
 getCount ()
 setUser ($oUser)
 getUser ()
- Public Member Functions inherited from oxList
 offsetExists ($offset)
 offsetGet ($offset)
 offsetSet ($offset, $oBase)
 offsetUnset ($offset)
 arrayKeys ()
 rewind ()
 current ()
 key ()
 prev ()
 next ()
 valid ()
 count ()
 clear ()
 assign ($aArray)
 reverse ()
 __construct ($sObjectName=null)
 __get ($sName)
 getArray ()
 init ($sObjectName, $sCoreTable=null)
 getBaseObject ()
 setBaseObject ($oObject)
 selectString ($sSql)
 add ($oObject)
 assignArray ($aData)
 setSqlLimit ($iStart, $iRecords)
 containsFieldValue ($oVal, $sFieldName)
 getList ()
- Public Member Functions inherited from oxSuperCfg
 __call ($sMethod, $aArgs)
 __construct ()
 getConfig ()
 setConfig ($oConfig)
 getSession ()
 setSession ($oSession)
 isAdmin ()
 setAdminMode ($blAdmin)

Protected Attributes

 $_sObjectsInListName = 'oxnews'
 $_oUser = null
- Protected Attributes inherited from oxList
 $_aArray = array()
 $_blRemovedActive = false
 $_sObjectsInListName = 'oxBase'
 $_sCoreTable = null
 $_sShopID = null
 $_aSqlLimit = array()

Additional Inherited Members

- Protected Member Functions inherited from oxList
 _assignElement ($oListObject, $aDbFields)
 _getFieldLongName ($sFieldName)
- Static Protected Attributes inherited from oxSuperCfg
static $_oConfig = null
static $_oSession = null
static $_oRights = null
static $_oActUser = null
static $_blIsAdmin = null

Detailed Description

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

Definition at line 8 of file oxnewslist.php.

Member Function Documentation

oxNewslist::getCount ( )

Returns count of all entries.

integer $iRecCnt

Definition at line 63 of file oxnewslist.php.

oxNewslist::getUser ( )

News list user getter


Reimplemented from oxSuperCfg.

Definition at line 106 of file oxnewslist.php.

oxNewslist::loadNews (   $iFrom = 0,
  $iLimit = 10 

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

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

Definition at line 30 of file oxnewslist.php.

oxNewslist::setUser (   $oUser)

News list user setter

oxuser$oUseruser object

Reimplemented from oxSuperCfg.

Definition at line 96 of file oxnewslist.php.

Member Data Documentation

oxNewslist::$_oUser = null

Ref. to user object

Definition at line 21 of file oxnewslist.php.

oxNewslist::$_sObjectsInListName = 'oxnews'

Definition at line 16 of file oxnewslist.php.

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