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
◆ __construct()
OxidEsales\EshopCommunity\Application\Model\News::__construct |
( |
| ) |
|
Class constructor, initiates parent constructor (parent::oxI18n()).
◆ _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 | $sFieldName | index OR name (eg. 'oxarticles__oxtitle') of a data field to set |
string | $sValue | value of data field |
int | $iDataType | field 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 | $dbRecord | database record to be assigned |
◆ delete()
OxidEsales\EshopCommunity\Application\Model\News::delete |
( |
|
$sOxid = null | ) |
|
Deletes object information from DB, returns true on success.
- Parameters
-
string | $sOxid | Object 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 | $sGroupID | user group ID |
- Returns
- bool
◆ $_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:
- /oxideshop-ce/source/Application/Model/News.php