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

Public Member Functions

 __construct ()
 
 assign ($dbRecord)
 
 load ($oxId)
 
 loadList ($sType, $aIds, $blLoadEmpty=false, $iLoadInLang=null)
 
 getObjectType ()
 
 getObjectId ()
 
 getReviewAndRatingListByUserId ($userId)
 

Protected Member Functions

 _insert ()
 

Protected Attributes

 $_blDisableShopCheck = true
 
 $_sClassName = 'oxreview'
 

Detailed Description

Article review manager. Performs loading, updating, inserting of article review.

Constructor & Destructor Documentation

◆ __construct()

OxidEsales\EshopCommunity\Application\Model\Review::__construct ( )

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

Member Function Documentation

◆ _insert()

OxidEsales\EshopCommunity\Application\Model\Review::_insert ( )
protected

Inserts object data fiels in DB. Returns true on success.

Returns
bool

◆ assign()

OxidEsales\EshopCommunity\Application\Model\Review::assign (   $dbRecord)

Calls parent::assign and assigns review writer data

Parameters
array$dbRecorddatabase record
Returns
bool

◆ getObjectId()

OxidEsales\EshopCommunity\Application\Model\Review::getObjectId ( )

Retuns review object id

Returns
string

◆ getObjectType()

OxidEsales\EshopCommunity\Application\Model\Review::getObjectType ( )

Retuns review object type

Returns
string

◆ getReviewAndRatingListByUserId()

OxidEsales\EshopCommunity\Application\Model\Review::getReviewAndRatingListByUserId (   $userId)

Returns ReviewAndRating list by User id.

Parameters
string$userId
Returns
array

◆ load()

OxidEsales\EshopCommunity\Application\Model\Review::load (   $oxId)

Loads object review information. Returns true on success.

Parameters
string$oxIdID of object to load
Returns
bool

◆ loadList()

OxidEsales\EshopCommunity\Application\Model\Review::loadList (   $sType,
  $aIds,
  $blLoadEmpty = false,
  $iLoadInLang = null 
)

get oxList of reviews for given object ids and type

Parameters
string$sTypetype of given ids
mixed$aIdsgiven object ids to load, can be array or just one id, given as string
boolean$blLoadEmptytrue if want to load empty text reviews
int$iLoadInLanglanguage to select for loading
Returns
oxList

Member Data Documentation

◆ $_blDisableShopCheck

OxidEsales\EshopCommunity\Application\Model\Review::$_blDisableShopCheck = true
protected

◆ $_sClassName

OxidEsales\EshopCommunity\Application\Model\Review::$_sClassName = 'oxreview'
protected

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