/**
  * Return whether this DataObject is on the current members wishlist.
  * @return boolean
  */
 function IsOnWishList($object = NULL)
 {
     if (!$object) {
         $object = $this->owner;
     }
     $array = WishListDecorator_Controller::get_wish_list_from_member_array();
     $dataobject_index = $this->owner->WishListIndexString();
     return isset($array[$dataobject_index]);
 }
 /**
  * Return whether there are wish list items to be retrieved (that haven't already been retrieved).
  * @return boolean
  */
 function CanRetrieveWishList()
 {
     if ($array = WishListDecorator_Controller::get_wish_list_from_member_array()) {
         if (is_array($array)) {
             if (count($array)) {
                 return true;
             }
         }
     }
     return false;
 }