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
mixedCookie valuegetLocale(\Zend_Controller_Request_Abstract $request) : string
\Zend_Controller_Request_Abstract
stringThe current localegetOrganization(\Zend_Controller_Request_Abstract $request) : integer
\Zend_Controller_Request_Abstract
integerThe current organizationset(string $name, mixed $value, integer $days= 30, string $basepath= '/') : boolean
stringName of the cookie
mixedValue to set
integerNumber of days to keep this cookie
stringThe folder of the domain, if any.
booleanTrue if the cookie was stored.setLocale(string $locale, string $basepath = '/') : boolean
stringLocale to store
stringThe folder of the domain, if any.
booleanTrue if the cookie was stored.setOrganization(integer $organization, string $basepath = '/') : boolean
integerOrganization to store
stringThe folder of the domain, if any.
booleanTrue if the cookie was stored.LOCALE_COOKIE = 'gems_locale'
ORGANIZATION_COOKIE = 'gems_organization'