40         $sShopId = $this->
getConfig()->getShopId();
 
   45             $sErrorMessage = 
'ERROR_MESSAGE_GUESTBOOK_ENTRY_ERR_LOGIN_TO_WRITE_ENTRY';
 
   53             $sErrorMessage = 
'ERROR_MESSAGE_GUESTBOOK_ENTRY_ERR_UNDEFINED_SHOP';
 
   56             return 'guestbookentry';
 
   60         if (
'' == $sReviewText) {
 
   61             $sErrorMessage = 
'ERROR_MESSAGE_GUESTBOOK_ENTRY_ERR_REVIEW_CONTAINS_NO_TEXT';
 
   64             return 'guestbookentry';
 
   68         $oEntrie = 
oxNew(
'oxgbentry');
 
   69         if ($oEntrie->floodProtection($sShopId, $sUserId)) {
 
   70             $sErrorMessage = 
'ERROR_MESSAGE_GUESTBOOK_ENTRY_ERR_MAXIMUM_NUMBER_EXCEEDED';
 
   73             return 'guestbookentry';
 
   79             $oEntry = 
oxNew(
'oxgbentry');
 
   80             $oEntry->oxgbentries__oxshopid = 
new oxField($sShopId);
 
   81             $oEntry->oxgbentries__oxuserid = 
new oxField($sUserId);
 
   82             $oEntry->oxgbentries__oxcontent = 
new oxField($sReviewText);