/** * Checks to se if a subscriber is subscribed to a list. * * @ingroup phplist_subscribers * @param $id The id value of the subscriber. * @param $lid The id value of the list. * @return boolean true is the user is subscribed to the list. */ function is_subscribed($user_id, $list_id) { $subSet = new BlastSubscription_Set($this->_dbcon); $subSet->addCriteriaUser($user_id); $subSet->addCriteriaList($list_id); $subSet->readData(); return $subSet->hasData(); }