Static Gems cookie utilities
package | Gems |
---|---|
subpackage | Cookies |
copyright | Copyright (c) 2011 Erasmus MC |
license | New BSD License |
since | Class available since version 1.0 |
get(\Zend_Controller_Request_Abstract $request, string $name, mixed $default = null
) : mixed
\Zend_Controller_Request_Abstract
string
mixed
mixed
Cookie valuegetLocale(\Zend_Controller_Request_Abstract $request) : string
\Zend_Controller_Request_Abstract
string
The current localegetOrganization(\Zend_Controller_Request_Abstract $request) : integer
\Zend_Controller_Request_Abstract
integer
The current organizationset(string $name, mixed $value, integer $days= 30
, string $basepath= '/'
) : boolean
string
Name of the cookie
mixed
Value to set
integer
Number of days to keep this cookie
string
The folder of the domain, if any.
boolean
True if the cookie was stored.setLocale(string $locale, string $basepath = '/'
) : boolean
string
Locale to store
string
The folder of the domain, if any.
boolean
True if the cookie was stored.setOrganization(integer $organization, string $basepath = '/'
) : boolean
integer
Organization to store
string
The folder of the domain, if any.
boolean
True if the cookie was stored.LOCALE_COOKIE = 'gems_locale'
ORGANIZATION_COOKIE = 'gems_organization'