final class Yaf_Session implements Iterator, ArrayAccess, Countable (View source)

Properties

static protected Yaf_Session $_instance
protected array $_session
protected bool $_started

Methods

static Yaf_Session
getInstance()

No description

start()

No description

mixed
get(string $name)

No description

bool
has(string $name)

No description

Yaf_Session|false
set(string $name, mixed $value)

No description

Yaf_Session|false
del(string $name)

No description

int
count()

No description

void
rewind()

No description

mixed
current()

No description

void
next()

No description

bool
valid()

No description

mixed
key()

No description

void
offsetUnset(TKey $offset)

No description

mixed
offsetGet(TKey $offset)

No description

bool
offsetExists(TKey $offset)

No description

void
offsetSet(TKey $offset, TValue $value)

No description

mixed
__get(string $name)

No description

bool
__isset(string $name)

No description

void
__set(string $name, mixed $value)

No description

void
__unset(string $name)

No description

Yaf_Session|null|false
clear()

No description

Details

static Yaf_Session getInstance()

No description

Return Value

Yaf_Session

Yaf_Session start()

No description

Return Value

Yaf_Session

mixed get(string $name)

No description

Parameters

string $name

Return Value

mixed

bool has(string $name)

No description

Parameters

string $name

Return Value

bool

Yaf_Session|false set(string $name, mixed $value)

No description

Parameters

string $name
mixed $value

Return Value

Yaf_Session|false

return FALSE on failure

Yaf_Session|false del(string $name)

No description

Parameters

string $name

Return Value

Yaf_Session|false

return FALSE on failure

int count()

No description

Return Value

int

The custom count as an integer.

The return value is cast to an integer.

See also

Countable::count

void rewind()

No description

Return Value

void

Any returned value is ignored.

See also

Iterator::rewind

mixed current()

No description

Return Value

mixed

Can return any type.

See also

Iterator::current

void next()

No description

Return Value

void

Any returned value is ignored.

See also

Iterator::next

bool valid()

No description

Return Value

bool

The return value will be casted to boolean and then evaluated. Returns true on success or false on failure.

See also

Iterator::valid

mixed key()

No description

Return Value

mixed

TKey on success, or null on failure.

See also

Iterator::key

void offsetUnset(TKey $offset)

No description

Parameters

TKey $offset

The offset to unset.

Return Value

void

See also

ArrayAccess::offsetUnset

mixed offsetGet(TKey $offset)

No description

Parameters

TKey $offset

The offset to retrieve.

Return Value

mixed

Can return all value types.

See also

ArrayAccess::offsetGet

bool offsetExists(TKey $offset)

No description

Parameters

TKey $offset

An offset to check for.

Return Value

bool

true on success or false on failure.

The return value will be casted to boolean if non-boolean was returned.

See also

ArrayAccess::offsetExists

void offsetSet(TKey $offset, TValue $value)

No description

Parameters

TKey $offset

The offset to assign the value to.

TValue $value

The value to set.

Return Value

void

See also

ArrayAccess::offsetSet

mixed __get(string $name)

No description

Parameters

string $name

Return Value

mixed

See also

Yaf_Session::get

bool __isset(string $name)

No description

Parameters

string $name

Return Value

bool

See also

Yaf_Session::has

void __set(string $name, mixed $value)

No description

Parameters

string $name
mixed $value

Return Value

void

See also

Yaf_Session::set

void __unset(string $name)

No description

Parameters

string $name

Return Value

void

See also

Yaf_Session::del

Yaf_Session|null|false clear()

No description

Return Value

Yaf_Session|null|false