126 if ( $this->_blShowSuggest === null ) {
139 if ( $this->_oWishList === null ) {
140 $this->_oWishList =
false;
141 if ( $oUser = $this->
getUser() ) {
142 $this->_oWishList = $oUser->getBasket(
'wishlist' );
143 if ( $this->_oWishList->isEmpty() ) {
144 $this->_oWishList =
false;
159 if ( $this->_aWishProductList === null ) {
160 $this->_aWishProductList =
false;
162 $this->_aWishProductList = $oWishList->getArticles();
165 return $this->_aWishProductList;
175 if ( $this->_aSimilarRecommListIds === null ) {
176 $this->_aSimilarRecommListIds =
false;
179 if ( is_array( $aWishProdList ) && ( $oSimilarProd = current( $aWishProdList ) ) ) {
180 $this->_aSimilarRecommListIds = array( $oSimilarProd->getId() );
199 if ( is_array( $aParams ) ) {
201 $oParams = ( object ) $aParams;
204 if ( !isset( $aParams[
'rec_name'] ) || !isset( $aParams[
'rec_email'] ) ||
205 !$aParams[
'rec_name'] || !$aParams[
'rec_email'] ) {
206 return oxRegistry::get(
"oxUtilsView")->addErrorToDisplay(
'ERROR_MESSAGE_COMPLETE_FIELDS_CORRECTLY',
false,
true );
209 if ( $oUser = $this->
getUser() ) {
210 $oParams->send_email = $oUser->oxuser__oxusername->value;
211 $oParams->send_name = $oUser->oxuser__oxfname->getRawValue().
' '.$oUser->oxuser__oxlname->getRawValue();
212 $oParams->send_id = $oUser->getId();
214 $this->_blEmailSent =
oxNew(
'oxemail' )->sendWishlistMail( $oParams );
215 if ( !$this->_blEmailSent ) {
216 return oxRegistry::get(
"oxUtilsView")->addErrorToDisplay(
'ERROR_MESSAGE_CHECK_EMAIL',
false,
true );
242 $this->_aEditValues = $oData;
267 if ( $oUser = $this->
getUser() ) {
270 $oBasket = $oUser->getBasket(
'wishlist' );
271 $oBasket->oxuserbaskets__oxpublic =
new oxField( ( $blPublic == 1 ) ? $blPublic : 0 );
287 $oUserList =
oxNew(
'oxuserlist' );
288 $oUserList->loadWishlistUsers( $sSearch );
289 if ( $oUserList->count() ) {
290 $this->_oWishListUsers = $oUserList;
293 $this->_sSearchParam = $sSearch;
333 $aPath[
'link'] = $this->
getLink();