38         $sShopId = $this->
getConfig()->getShopId();
 
   43             $sErrorMessage = 
'ERROR_MESSAGE_GUESTBOOK_ENTRY_ERR_LOGIN_TO_WRITE_ENTRY';
 
   51             $sErrorMessage = 
'ERROR_MESSAGE_GUESTBOOK_ENTRY_ERR_UNDEFINED_SHOP';
 
   54             return 'guestbookentry';
 
   58         if (
'' == $sReviewText) {
 
   59             $sErrorMessage = 
'ERROR_MESSAGE_GUESTBOOK_ENTRY_ERR_REVIEW_CONTAINS_NO_TEXT';
 
   62             return 'guestbookentry';
 
   66         $oEntrie = 
oxNew(
'oxgbentry');
 
   67         if ($oEntrie->floodProtection($sShopId, $sUserId)) {
 
   68             $sErrorMessage = 
'ERROR_MESSAGE_GUESTBOOK_ENTRY_ERR_MAXIMUM_NUMBER_EXCEEDED';
 
   71             return 'guestbookentry';
 
   77             $oEntry = 
oxNew(
'oxgbentry');
 
   78             $oEntry->oxgbentries__oxshopid = 
new oxField($sShopId);
 
   79             $oEntry->oxgbentries__oxuserid = 
new oxField($sUserId);
 
   80             $oEntry->oxgbentries__oxcontent = 
new oxField($sReviewText);