/** * Exclude object from result * * @param ChildPopInCampaign $popInCampaign Object to remove from the list of results * * @return ChildPopInCampaignQuery The current query, for fluid interface */ public function prune($popInCampaign = null) { if ($popInCampaign) { $this->addUsingAlias(PopInCampaignTableMap::ID, $popInCampaign->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Get the session key used to store if a campaign has been seen. * @param PopInCampaign $campaign * @return string */ protected static function getSeenSessionKeyForPopInCampaign(PopInCampaign $campaign) { return static::$BASE_SESSION_KEY_CAMPAIGN_SEEN . '.' . $campaign->getId(); }