PHP Класс Prado\Web\THttpCookie

A THttpCookie instance stores a single cookie, including the cookie name, value, domain, path, expire, and secure.
С версии: 3.0
Автор: Qiang Xue ([email protected])
Наследование: extends Prado\TComponent
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( $name, $value ) Constructor.
getDomain ( ) : string
getExpire ( ) : integer
getHttpOnly ( ) : boolean
getName ( ) : string
getPath ( ) : string
getSecure ( ) : boolean
getValue ( ) : string
setDomain ( $value )
setExpire ( $value )
setHttpOnly ( boolean $value )
setName ( $value )
setPath ( $value )
setSecure ( $value )
setValue ( $value )

Описание методов

__construct() публичный метод

Constructor.
public __construct ( $name, $value )

getDomain() публичный метод

public getDomain ( ) : string
Результат string the domain to associate the cookie with

getExpire() публичный метод

public getExpire ( ) : integer
Результат integer the time the cookie expires. This is a Unix timestamp so is in number of seconds since the epoch.

getHttpOnly() публичный метод

public getHttpOnly ( ) : boolean
Результат boolean if true the cookie value will be unavailable to JavaScript

getName() публичный метод

public getName ( ) : string
Результат string the name of the cookie

getPath() публичный метод

public getPath ( ) : string
Результат string the path on the server in which the cookie will be available on, default is '/'

getSecure() публичный метод

public getSecure ( ) : boolean
Результат boolean whether the cookie should only be transmitted over a secure HTTPS connection

getValue() публичный метод

public getValue ( ) : string
Результат string the value of the cookie

setDomain() публичный метод

public setDomain ( $value )

setExpire() публичный метод

public setExpire ( $value )

setHttpOnly() публичный метод

public setHttpOnly ( boolean $value )
$value boolean if true the cookie value will be unavailable to JavaScript

setName() публичный метод

public setName ( $value )

setPath() публичный метод

public setPath ( $value )

setSecure() публичный метод

public setSecure ( $value )

setValue() публичный метод

public setValue ( $value )