public static function setUserAgent($value)
 {
     static::$_userAgent = $value;
 }
Example #2
0
 /**
  * Get / Set the user agent
  *
  * @param string|null $userAgent Set the user agent
  * @return string Current user agent
  */
 public static function userAgent($userAgent = null)
 {
     if ($userAgent) {
         static::$_userAgent = $userAgent;
     }
     if (empty(static::$_userAgent)) {
         CakeSession::init(static::$path);
     }
     return static::$_userAgent;
 }