oxNews Class Reference

Inheritance diagram for oxNews:

Inheritance graph
[legend]
Collaboration diagram for oxNews:

Collaboration graph
[legend]

List of all members.


Detailed Description

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

Public Member Functions

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

Protected Member Functions

 _update ()
 _insert ()
 _setFieldData ($sFieldName, $sValue, $iDataType=oxField::T_TEXT)

Protected Attributes

 $_oGroups = null
 $_sClassName = 'oxnews'

Constructor & Destructor Documentation

oxNews.__construct (  ) 

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

Returns:
null

Reimplemented from oxI18n.


Member Function Documentation

oxNews.assign ( dbRecord  ) 

Assigns object data.

Parameters:
string $dbRecord database record to be assigned
Returns:
null

Reimplemented from oxI18n.

oxNews.getGroups (  ) 

Returns list of user groups assigned to current news object

Returns:
oxlist

oxNews.inGroup ( sGroupID  ) 

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

Parameters:
string $sGroupID user group ID
Returns:
bool

oxNews.delete ( sOxid = null  ) 

Deletes object information from DB, returns true on success.

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

Reimplemented from oxBase.

oxNews._update (  )  [protected]

Updates object information in DB.

Returns:
null

Reimplemented from oxI18n.

oxNews._insert (  )  [protected]

Inserts object details to DB, returns true on success.

Returns:
bool

Reimplemented from oxBase.

oxNews._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 field type
Returns:
null

Reimplemented from oxBase.


Member Data Documentation

oxNews.$_oGroups = null [protected]

oxNews.$_sClassName = 'oxnews' [protected]

Reimplemented from oxI18n.


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

Generated on Wed Oct 29 23:44:50 2008 for OXID eShop CE by  doxygen 1.5.5