PHP 클래스 Pop\Web\Session

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

공개 메소드들

메소드 설명
__get ( string $name ) : mixed Get method to return the value of the $_SESSION global variable.
__isset ( string $name ) : boolean Return the isset value of the $_SESSION global variable.
__set ( string $name, mixed $value ) : void Set a property in the session object that is linked to the $_SESSION global variable.
__unset ( string $name ) : void Unset the $_SESSION global variable.
getId ( ) : string Return the current the session id.
getInstance ( ) : Session Determine whether or not an instance of the session object exists already, and instantiate the object if it does not exist.
kill ( ) : void Destroy the session.
regenerateId ( ) : void Regenerate the session id.

비공개 메소드들

메소드 설명
__construct ( ) : Session Constructor

메소드 상세

__get() 공개 메소드

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

__isset() 공개 메소드

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

__set() 공개 메소드

Set a property in the session object that is linked to the $_SESSION global variable.
public __set ( string $name, mixed $value ) : void
$name string
$value mixed
리턴 void

__unset() 공개 메소드

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

getId() 공개 메소드

Return the current the session id.
public getId ( ) : string
리턴 string

getInstance() 공개 정적인 메소드

Determine whether or not an instance of the session object exists already, and instantiate the object if it does not exist.
public static getInstance ( ) : Session
리턴 Session

kill() 공개 메소드

Destroy the session.
public kill ( ) : void
리턴 void

regenerateId() 공개 메소드

Regenerate the session id.
public regenerateId ( ) : void
리턴 void