You are here

public function UcWishlistManager::getWishlistItem in UC Wish List 8

This function retrieves a specific wish list product with reference to the parameters wid, nid and data provided as input.

Parameters

$wid: refers to a particular wish list id used to retrieve a specific wish list item.

$nid: refers to a particular node id used to retrieve a specific wish list item.

$data: refers to the data associated with a particular wish list item.

Return value

string A specific wishlist product by referring to the corresponding wid, nid and associated data.

File

src/Database/UcWishlistManager.php, line 129

Class

UcWishlistManager
Defines an UcWishlistManager service.

Namespace

Drupal\uc_wishlist\Database

Code

public function getWishlistItem($wid, $nid, $data) {
  $this->connection
    ->query("SELECT * FROM {uc_wishlist_products} WHERE wid = :wid AND nid = :nid AND data = :data", [
    ':wid' => $wid,
    ':nid' => $nid,
    ':data' => serialize($data),
  ]);
}