/** * @return int cookie lifetime in seconds */ public function getCookieLifetime() { return Pap_Tracking_Cookie::computeLifeTimeDaysToSeconds($this->get(Pap_Db_Table_Campaigns::COOKIELIFETIME)); }
/** * @return int cookie lifetime in seconds OR -1 if is not defined */ public function getCookieLifetime() { if ($this->get(Pap_Db_Table_CommissionGroups::COOKIE_LIFE_TIME) > self::COOKIE_LIFETIME_VALUE_SAME_AS_CAMPAIGN) { return Pap_Tracking_Cookie::computeLifeTimeDaysToSeconds($this->get(Pap_Db_Table_CommissionGroups::COOKIE_LIFE_TIME)); } return self::COOKIE_LIFETIME_VALUE_SAME_AS_CAMPAIGN; }