127 if ($this->_blShowSuggest === null) {
141 if ($this->_oWishList === null) {
142 $this->_oWishList =
false;
143 if ($oUser = $this->
getUser()) {
144 $this->_oWishList = $oUser->getBasket(
'wishlist');
145 if ($this->_oWishList->isEmpty()) {
146 $this->_oWishList =
false;
161 if ($this->_aWishProductList === null) {
162 $this->_aWishProductList =
false;
164 $this->_aWishProductList = $oWishList->getArticles();
168 return $this->_aWishProductList;
178 if ($this->_aSimilarRecommListIds === null) {
179 $this->_aSimilarRecommListIds =
false;
182 if (is_array($aWishProdList) && ($oSimilarProd = current($aWishProdList))) {
183 $this->_aSimilarRecommListIds = array($oSimilarProd->getId());
202 if (is_array($aParams)) {
204 $oParams = ( object ) $aParams;
207 if (!isset($aParams[
'rec_name']) || !isset($aParams[
'rec_email']) ||
208 !$aParams[
'rec_name'] || !$aParams[
'rec_email']
210 return $oUtilsView->addErrorToDisplay(
'ERROR_MESSAGE_COMPLETE_FIELDS_CORRECTLY',
false,
true);
213 if ($oUser = $this->
getUser()) {
214 $sFirstName =
'oxuser__oxfname';
215 $sLastName =
'oxuser__oxlname';
216 $sSendName =
'send_name';
217 $sSendEmail =
'send_email';
218 $sUserNameField =
'oxuser__oxusername';
219 $sSendName =
'send_name';
220 $sSendId =
'send_id';
222 $oParams->$sSendEmail = $oUser->$sUserNameField->value;
223 $oParams->$sSendName = $oUser->$sFirstName->getRawValue() .
' ' . $oUser->$sLastName->getRawValue();
224 $oParams->$sSendId = $oUser->getId();
226 $this->_blEmailSent =
oxNew(
'oxemail')->sendWishlistMail($oParams);
227 if (!$this->_blEmailSent) {
228 return $oUtilsView->addErrorToDisplay(
'ERROR_MESSAGE_CHECK_EMAIL',
false,
true);
252 $this->_aEditValues = $oData;
277 if ($oUser = $this->
getUser()) {
280 $oBasket = $oUser->getBasket(
'wishlist');
281 $oBasket->oxuserbaskets__oxpublic =
new oxField(($blPublic == 1) ? $blPublic : 0);
295 $oUserList =
oxNew(
'oxuserlist');
296 $oUserList->loadWishlistUsers($sSearch);
297 if ($oUserList->count()) {
298 $this->_oWishListUsers = $oUserList;
301 $this->_sSearchParam = $sSearch;
339 $aPath[
'title'] =
oxRegistry::getLang()->translateString(
'MY_ACCOUNT', $iBaseLanguage,
false);
340 $aPath[
'link'] =
oxRegistry::get(
"oxSeoEncoder")->getStaticUrl($sSelfLink .
'cl=account');
343 $aPath[
'title'] =
oxRegistry::getLang()->translateString(
'MY_GIFT_REGISTRY', $iBaseLanguage,
false);
344 $aPath[
'link'] = $this->
getLink();