PHP 클래스 CI_Session_database_driver, TastyIgniter

상속: extends CI_Session_driver, implements SessionHandlerInterface
파일 보기 프로젝트 열기: tastyigniter/tastyigniter

보호된 프로퍼티들

프로퍼티 타입 설명
$_db object DB object
$_platform string Lock "driver" flag
$_row_exists boolean Row exists flag

공개 메소드들

메소드 설명
__construct ( array &$params ) : void Class constructor
close ( ) : boolean Close
destroy ( string $session_id ) : boolean Destroy
gc ( integer $maxlifetime ) : boolean Garbage Collector
open ( string $save_path, string $name ) : boolean Open
read ( string $session_id ) : string Read
write ( string $session_id, string $session_data ) : boolean Write

보호된 메소드들

메소드 설명
_get_lock ( string $session_id ) : boolean Get lock
_release_lock ( ) : boolean Release lock

메소드 상세

__construct() 공개 메소드

Class constructor
public __construct ( array &$params ) : void
$params array Configuration parameters
리턴 void

_get_lock() 보호된 메소드

Acquires a lock, depending on the underlying platform.
protected _get_lock ( string $session_id ) : boolean
$session_id string Session ID
리턴 boolean

_release_lock() 보호된 메소드

Releases a previously acquired lock
protected _release_lock ( ) : boolean
리턴 boolean

close() 공개 메소드

Releases locks
public close ( ) : boolean
리턴 boolean

destroy() 공개 메소드

Destroys the current session.
public destroy ( string $session_id ) : boolean
$session_id string Session ID
리턴 boolean

gc() 공개 메소드

Deletes expired sessions
public gc ( integer $maxlifetime ) : boolean
$maxlifetime integer Maximum lifetime of sessions
리턴 boolean

open() 공개 메소드

Initializes the database connection
public open ( string $save_path, string $name ) : boolean
$save_path string Table name
$name string Session cookie name, unused
리턴 boolean

read() 공개 메소드

Reads session data and acquires a lock
public read ( string $session_id ) : string
$session_id string Session ID
리턴 string Serialized session data

write() 공개 메소드

Writes (create / update) session data
public write ( string $session_id, string $session_data ) : boolean
$session_id string Session ID
$session_data string Serialized session data
리턴 boolean

프로퍼티 상세

$_db 보호되어 있는 프로퍼티

DB object
protected object $_db
리턴 object

$_platform 보호되어 있는 프로퍼티

Lock "driver" flag
protected string $_platform
리턴 string

$_row_exists 보호되어 있는 프로퍼티

Row exists flag
protected bool $_row_exists
리턴 boolean