PHP 클래스 Pop\Web\Cookie

저자: Nick Sagona, III ([email protected])
상속: implements ArrayAccess
파일 보기 프로젝트 열기: nicksagona/PopPHP 1 사용 예제들

공개 메소드들

메소드 설명
__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 = [] ) : Cookie 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 ) : Cookie Set a property in the cookie object that is linked to the $_COOKIE global variable.

비공개 메소드들

메소드 설명
__construct ( array $options = [] ) : Cookie Constructor
setOptions ( array $options = [] ) : Cookie Private method to set options

메소드 상세

__get() 공개 메소드

Get method to return the value of the $_COOKIE global variable.
public __get ( string $name ) : mixed
$name string
리턴 mixed

__isset() 공개 메소드

Return the isset value of the $_COOKIE global variable.
public __isset ( string $name ) : boolean
$name string
리턴 boolean

__unset() 공개 메소드

Unset the value in the $_COOKIE global variable.
public __unset ( string $name ) : void
$name string
리턴 void

clear() 공개 메소드

Clear (delete) all cookies via unset($cookie)
public clear ( array $options = null ) : void
$options array
리턴 void

delete() 공개 메소드

Delete a cookie directly
public delete ( string $name, array $options = null ) : void
$name string
$options array
리턴 void

getDomain() 공개 메소드

Return the current cookie domain.
public getDomain ( ) : string
리턴 string

getExpire() 공개 메소드

Return the current cookie expiration
public getExpire ( ) : integer
리턴 integer

getInstance() 공개 정적인 메소드

Determine whether or not an instance of the cookie object exists already, and instantiate the object if it does not exist.
public static getInstance ( array $options = [] ) : Cookie
$options array
리턴 Cookie

getIp() 공개 메소드

Return the current IP address.
public getIp ( ) : string
리턴 string

getPath() 공개 메소드

Return the current cookie path.
public getPath ( ) : string
리턴 string

isHttpOnly() 공개 메소드

Return if the cookie is HTTP only
public isHttpOnly ( ) : boolean
리턴 boolean

isSecure() 공개 메소드

Return if the cookie is secure
public isSecure ( ) : boolean
리턴 boolean

set() 공개 메소드

Set a property in the cookie object that is linked to the $_COOKIE global variable.
public set ( string $name, mixed $value, array $options = null ) : Cookie
$name string
$value mixed
$options array
리턴 Cookie