예제 #1
0
 /**
  * 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;
 }
예제 #2
0
파일: FrontHook.php 프로젝트: bcbrr/PopIn
 /**
  * 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();
 }