public function executeIndex(sfWebRequest $request)
 {
     $updated = strtotime('May 8, 2010 8:50 am');
     $cookie = $request->getCookie('donateNashville');
     if (!$cookie || $cookie != $updated) {
         $this->getResponse()->setCookie("donateNashville", $updated, time() + 150000000);
         $this->showPopUp = true;
     }
 }
 public static function isLoggedIn(sfWebRequest $request)
 {
     // FIXME may also need to check what type of user it is
     return $request->getCookie("username");
 }
 public function __construct($formName, $actionUrl, sfWebRequest $request)
 {
     $this->_formName = $formName;
     $this->_actionUrl = $actionUrl;
     $this->_sid = $request->getCookie("sid", -1);
 }
 public static function isLoggedIn(sfWebRequest $request)
 {
     return $request->getCookie("username") && $request->getCookie("sid");
 }
 /**
  * Reads the poll's visibility cookie and returns its value.
  * 
  * @param sfWebRequest $request
  * @return type 
  */
 static function getCookieContent(sfWebRequest $request)
 {
     $cookie = $request->getCookie(self::getCookieName());
     return null !== $cookie ? self::decodeFromCookie($cookie) : array();
 }