PHP 클래스 CI_Session, TastyIgniter

저자: ExpressionEngine Dev Team
파일 보기 프로젝트 열기: tastyigniter/tastyigniter 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$userdata Just a reference to $_SESSION, for BC purposes.

보호된 프로퍼티들

프로퍼티 타입 설명
$_config
$_driver

공개 메소드들

메소드 설명
__construct ( array $params = [] ) : void Class constructor
__get ( string $key ) : mixed __get()
__isset ( string $key ) : boolean __isset()
__set ( string $key, mixed $value ) : void __set()
all_userdata ( ) : array All userdata (fetch)
flashdata ( string $key = NULL ) : mixed Flashdata (fetch)
get_flash_keys ( ) : array Get flash keys
get_temp_keys ( ) : array Get temp keys
get_userdata ( ) Get userdata reference
has_userdata ( string $key ) : boolean Has userdata
keep_flashdata ( mixed $key ) : void Keep flashdata
mark_as_flash ( mixed $key ) : boolean Mark as flash
mark_as_temp ( mixed $key, integer $ttl = 300 ) : boolean Mark as temp
sess_destroy ( ) : void Session destroy
sess_regenerate ( boolean $destroy = FALSE ) : void Session regenerate
set_flashdata ( mixed $data, mixed $value = NULL ) : void Set flashdata
set_tempdata ( mixed $data, mixed $value = NULL, integer $ttl = 300 ) : void Set tempdata
set_userdata ( mixed $data, mixed $value = NULL ) : void Set userdata
tempdata ( string $key = NULL ) : mixed Temp data (fetch)
unmark_flash ( mixed $key ) : void Unmark flash
unmark_temp ( mixed $key ) : void Unmark flash
unset_tempdata ( $key ) : void Unset tempdata
unset_userdata ( $key ) : void Unset userdata
userdata ( string $key = NULL ) : mixed Userdata (fetch)

보호된 메소드들

메소드 설명
_ci_init_vars ( ) : void Handle temporary variables
_ci_load_classes ( string $driver ) : string CI Load Classes
_configure ( &$params ) : void Configuration

메소드 상세

__construct() 공개 메소드

Class constructor
public __construct ( array $params = [] ) : void
$params array Configuration parameters
리턴 void

__get() 공개 메소드

__get()
public __get ( string $key ) : mixed
$key string 'session_id' or a session data key
리턴 mixed

__isset() 공개 메소드

__isset()
public __isset ( string $key ) : boolean
$key string 'session_id' or a session data key
리턴 boolean

__set() 공개 메소드

__set()
public __set ( string $key, mixed $value ) : void
$key string Session data key
$value mixed Session data value
리턴 void

_ci_init_vars() 보호된 메소드

Clears old "flash" data, marks the new one for deletion and handles "temp" data deletion.
protected _ci_init_vars ( ) : void
리턴 void

_ci_load_classes() 보호된 메소드

An internal method to load all possible dependency and extension classes. It kind of emulates the CI_Driver library, but is self-sufficient.
protected _ci_load_classes ( string $driver ) : string
$driver string Driver name
리턴 string Driver class name

_configure() 보호된 메소드

Handle input parameters and configuration defaults
protected _configure ( &$params ) : void
리턴 void

all_userdata() 공개 메소드

Legacy CI_Session compatibility method
public all_userdata ( ) : array
리턴 array $_SESSION, excluding flash data items

flashdata() 공개 메소드

Legacy CI_Session compatibility method
public flashdata ( string $key = NULL ) : mixed
$key string Session data key
리턴 mixed Session data value or NULL if not found

get_flash_keys() 공개 메소드

Get flash keys
public get_flash_keys ( ) : array
리턴 array

get_temp_keys() 공개 메소드

Get temp keys
public get_temp_keys ( ) : array
리턴 array

get_userdata() 공개 메소드

Legacy CI_Session compatibility method
public get_userdata ( )

has_userdata() 공개 메소드

Legacy CI_Session compatibility method
public has_userdata ( string $key ) : boolean
$key string Session data key
리턴 boolean

keep_flashdata() 공개 메소드

Legacy CI_Session compatibility method
public keep_flashdata ( mixed $key ) : void
$key mixed Session data key(s)
리턴 void

mark_as_flash() 공개 메소드

Mark as flash
public mark_as_flash ( mixed $key ) : boolean
$key mixed Session data key(s)
리턴 boolean

mark_as_temp() 공개 메소드

Mark as temp
public mark_as_temp ( mixed $key, integer $ttl = 300 ) : boolean
$key mixed Session data key(s)
$ttl integer Time-to-live in seconds
리턴 boolean

sess_destroy() 공개 메소드

Legacy CI_Session compatibility method
public sess_destroy ( ) : void
리턴 void

sess_regenerate() 공개 메소드

Legacy CI_Session compatibility method
public sess_regenerate ( boolean $destroy = FALSE ) : void
$destroy boolean Destroy old session data flag
리턴 void

set_flashdata() 공개 메소드

Legacy CI_Session compatibility method
public set_flashdata ( mixed $data, mixed $value = NULL ) : void
$data mixed Session data key or an associative array
$value mixed Value to store
리턴 void

set_tempdata() 공개 메소드

Legacy CI_Session compatibility method
public set_tempdata ( mixed $data, mixed $value = NULL, integer $ttl = 300 ) : void
$data mixed Session data key or an associative array of items
$value mixed Value to store
$ttl integer Time-to-live in seconds
리턴 void

set_userdata() 공개 메소드

Legacy CI_Session compatibility method
public set_userdata ( mixed $data, mixed $value = NULL ) : void
$data mixed Session data key or an associative array
$value mixed Value to store
리턴 void

tempdata() 공개 메소드

Legacy CI_Session compatibility method
public tempdata ( string $key = NULL ) : mixed
$key string Session data key
리턴 mixed Session data value or NULL if not found

unmark_flash() 공개 메소드

Unmark flash
public unmark_flash ( mixed $key ) : void
$key mixed Session data key(s)
리턴 void

unmark_temp() 공개 메소드

Unmark flash
public unmark_temp ( mixed $key ) : void
$key mixed Session data key(s)
리턴 void

unset_tempdata() 공개 메소드

Legacy CI_Session compatibility method
public unset_tempdata ( $key ) : void
리턴 void

unset_userdata() 공개 메소드

Legacy CI_Session compatibility method
public unset_userdata ( $key ) : void
리턴 void

userdata() 공개 메소드

Legacy CI_Session compatibility method
public userdata ( string $key = NULL ) : mixed
$key string Session data key
리턴 mixed Session data value or NULL if not found

프로퍼티 상세

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

protected $_config

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

protected $_driver

$userdata 공개적으로 프로퍼티

Just a reference to $_SESSION, for BC purposes.
public $userdata