PHP 인터페이스 ManaPHP\Http\CookiesInterface

파일 보기 프로젝트 열기: manaphp/manaphp

공개 메소드들

메소드 설명
delete ( string $name ) : boolean Deletes a cookie by its name This method does not removes cookies from the $_COOKIE
get ( string $name ) : mixed Gets a cookie from the bag
has ( string $name ) : boolean Check if a cookie is defined in the bag or exists in the $_COOKIE
send ( ) Sends the cookies to the client
set ( string $name, mixed $value, integer $expire, string $path = null, string $domain = null, boolean $secure = false, boolean $httpOnly = true ) : static Sets a cookie to be sent at the end of the request

메소드 상세

delete() 공개 메소드

Deletes a cookie by its name This method does not removes cookies from the $_COOKIE
public delete ( string $name ) : boolean
$name string
리턴 boolean

get() 공개 메소드

Gets a cookie from the bag
public get ( string $name ) : mixed
$name string
리턴 mixed

has() 공개 메소드

Check if a cookie is defined in the bag or exists in the $_COOKIE
public has ( string $name ) : boolean
$name string
리턴 boolean

send() 공개 메소드

Sends the cookies to the client
public send ( )

set() 공개 메소드

Sets a cookie to be sent at the end of the request
public set ( string $name, mixed $value, integer $expire, string $path = null, string $domain = null, boolean $secure = false, boolean $httpOnly = true ) : static
$name string
$value mixed
$expire integer
$path string
$domain string
$secure boolean
$httpOnly boolean
리턴 static