OXID eShop CE  4.8.12
 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 ()
 selectString ($sSql)
 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.

Returns
integer $iRecCnt

Definition at line 64 of file oxnewslist.php.

oxNewslist::getUser ( )

News list user getter

Returns
oxuser

Reimplemented from oxSuperCfg.

Definition at line 109 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.

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

Definition at line 31 of file oxnewslist.php.

oxNewslist::setUser (   $oUser)

News list user setter

Parameters
oxuser$oUseruser object
Returns
null

Reimplemented from oxSuperCfg.

Definition at line 99 of file oxnewslist.php.

Member Data Documentation

oxNewslist::$_oUser = null
protected

Ref. to user object

Definition at line 20 of file oxnewslist.php.

oxNewslist::$_sObjectsInListName = 'oxnews'
protected

Definition at line 15 of file oxnewslist.php.


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