Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ( $name, $value=null, $maxAge=null, $domain=null, $path=null, $secure=false, $httpOnly=false, \DateTime $expires=null) | |
getDomain () | |
getExpires () | |
getMaxAge () | |
getName () | |
getPath () | |
getValue () | |
hasDomain () | |
hasExpires () | |
hasMaxAge () | |
hasValue () | |
isExpired () | |
isHttpOnly () | |
isSecure () | |
isValid () | |
match (self $cookie) | |
matchDomain ($domain) | |
matchPath ($path) | |
withDomain ($domain) | |
withExpires (\DateTime $expires=null) | |
withHttpOnly ($httpOnly) | |
withMaxAge ($maxAge) | |
withPath ($path) | |
withSecure ($secure) | |
withValue ($value) | |
Static Public Member Functions | |
static | createWithoutValidation ( $name, $value=null, $maxAge=null, $domain=null, $path=null, $secure=false, $httpOnly=false, \DateTime $expires=null) |
Cookie Value Object.
Definition at line 12 of file vendor/php-http/message/src/Cookie.php.
Http\Message\Cookie::__construct | ( | $name, | |
$value = null , |
|||
$maxAge = null , |
|||
$domain = null , |
|||
$path = null , |
|||
$secure = false , |
|||
$httpOnly = false , |
|||
\DateTime | $expires = null |
||
) |
string | $name | |
string | null | $value | |
int | null | $maxAge | |
string | null | $domain | |
string | null | $path | |
bool | $secure | |
bool | $httpOnly | |
\DateTime | null | $expires | Expires attribute is HTTP 1.0 only and should be avoided. |
Definition at line 92 of file vendor/php-http/message/src/Cookie.php.
|
static |
Creates a new cookie without any attribute validation.
string | $name | |
string | null | $value | |
int | $maxAge | |
string | null | $domain | |
string | null | $path | |
bool | $secure | |
bool | $httpOnly | |
\DateTime | null | $expires | Expires attribute is HTTP 1.0 only and should be avoided. |
Definition at line 128 of file vendor/php-http/message/src/Cookie.php.
Http\Message\Cookie::getDomain | ( | ) |
Returns the domain.
Definition at line 280 of file vendor/php-http/message/src/Cookie.php.
Http\Message\Cookie::getExpires | ( | ) |
Returns the expiration time.
Definition at line 235 of file vendor/php-http/message/src/Cookie.php.
Http\Message\Cookie::getMaxAge | ( | ) |
Returns the max age.
Definition at line 198 of file vendor/php-http/message/src/Cookie.php.
Referenced by Http\Message\CookieJar\addCookie().
Http\Message\Cookie::getName | ( | ) |
Returns the name.
Definition at line 151 of file vendor/php-http/message/src/Cookie.php.
Http\Message\Cookie::getPath | ( | ) |
Returns the path.
Definition at line 339 of file vendor/php-http/message/src/Cookie.php.
Http\Message\Cookie::getValue | ( | ) |
Returns the value.
Definition at line 161 of file vendor/php-http/message/src/Cookie.php.
Referenced by Http\Message\CookieJar\addCookie().
Http\Message\Cookie::hasDomain | ( | ) |
Checks if there is a domain.
Definition at line 290 of file vendor/php-http/message/src/Cookie.php.
Referenced by Http\Message\Cookie\matchDomain().
Http\Message\Cookie::hasExpires | ( | ) |
Checks if there is an expiration time.
Definition at line 245 of file vendor/php-http/message/src/Cookie.php.
Http\Message\Cookie::hasMaxAge | ( | ) |
Checks if there is a max age.
Definition at line 208 of file vendor/php-http/message/src/Cookie.php.
Http\Message\Cookie::hasValue | ( | ) |
Checks if there is a value.
Definition at line 171 of file vendor/php-http/message/src/Cookie.php.
Referenced by Http\Message\CookieJar\addCookie().
Http\Message\Cookie::isExpired | ( | ) |
Checks if the cookie is expired.
Definition at line 270 of file vendor/php-http/message/src/Cookie.php.
Http\Message\Cookie::isHttpOnly | ( | ) |
Check whether this cookie may not be accessed through Javascript.
Definition at line 403 of file vendor/php-http/message/src/Cookie.php.
Http\Message\Cookie::isSecure | ( | ) |
Checks whether this cookie may only be sent over HTTPS.
Definition at line 378 of file vendor/php-http/message/src/Cookie.php.
Http\Message\Cookie::isValid | ( | ) |
Validates cookie attributes.
Definition at line 442 of file vendor/php-http/message/src/Cookie.php.
Http\Message\Cookie::match | ( | self | $cookie | ) |
Checks if this cookie represents the same cookie as $cookie.
This does not compare the values, only name, domain and path.
Cookie | $cookie |
Definition at line 432 of file vendor/php-http/message/src/Cookie.php.
Http\Message\Cookie::matchDomain | ( | $domain | ) |
Checks whether this cookie is meant for this domain.
string | $domain |
Definition at line 319 of file vendor/php-http/message/src/Cookie.php.
References Http\Message\Cookie\hasDomain().
Http\Message\Cookie::matchPath | ( | $path | ) |
Checks whether this cookie is meant for this path.
string | $path |
Definition at line 368 of file vendor/php-http/message/src/Cookie.php.
Http\Message\Cookie::withDomain | ( | $domain | ) |
Sets the domain.
string | null | $domain |
Definition at line 302 of file vendor/php-http/message/src/Cookie.php.
Http\Message\Cookie::withExpires | ( | \DateTime | $expires = null | ) |
Sets the expires.
\DateTime | null | $expires |
Definition at line 257 of file vendor/php-http/message/src/Cookie.php.
Http\Message\Cookie::withHttpOnly | ( | $httpOnly | ) |
Sets whether this cookie may not be accessed through Javascript.
bool | $httpOnly |
Definition at line 415 of file vendor/php-http/message/src/Cookie.php.
Http\Message\Cookie::withMaxAge | ( | $maxAge | ) |
Sets the max age.
int | null | $maxAge |
Definition at line 220 of file vendor/php-http/message/src/Cookie.php.
Http\Message\Cookie::withPath | ( | $path | ) |
Sets the path.
string | null | $path |
Definition at line 351 of file vendor/php-http/message/src/Cookie.php.
Http\Message\Cookie::withSecure | ( | $secure | ) |
Sets whether this cookie should only be sent over HTTPS.
bool | $secure |
Definition at line 390 of file vendor/php-http/message/src/Cookie.php.
Http\Message\Cookie::withValue | ( | $value | ) |
Sets the value.
string | null | $value |
Definition at line 183 of file vendor/php-http/message/src/Cookie.php.