Метод | Описание | |
---|---|---|
__get ( string $name ) : mixed | Get method to return the value of the $_COOKIE global variable. | |
__isset ( string $name ) : boolean | Return the isset value of the $_COOKIE global variable. | |
__unset ( string $name ) : void | Unset the value in the $_COOKIE global variable. | |
clear ( array $options = null ) : void | Clear (delete) all cookies via unset($cookie) | |
delete ( string $name, array $options = null ) : void | Delete a cookie directly | |
getDomain ( ) : string | Return the current cookie domain. | |
getExpire ( ) : integer | Return the current cookie expiration | |
getInstance ( array $options = [] ) : |
Determine whether or not an instance of the cookie object exists already, and instantiate the object if it does not exist. | |
getIp ( ) : string | Return the current IP address. | |
getPath ( ) : string | Return the current cookie path. | |
isHttpOnly ( ) : boolean | Return if the cookie is HTTP only | |
isSecure ( ) : boolean | Return if the cookie is secure | |
set ( string $name, mixed $value, array $options = null ) : |
Set a property in the cookie object that is linked to the $_COOKIE global variable. |
Метод | Описание | |
---|---|---|
__construct ( array $options = [] ) : |
Constructor | |
setOptions ( array $options = [] ) : |
Private method to set options |
public static getInstance ( array $options = [] ) : |
||
$options | array | |
Результат |
public isHttpOnly ( ) : boolean | ||
Результат | boolean |