JSessionStorageEaccelerator
class JSessionStorageEaccelerator extends JSessionStorage
eAccelerator session storage handler for PHP
Methods
Constructor
Sets a default value if not alreay assigned
Returns a property of the object or the default value if the property is not set.
Returns an associative array of object properties.
Get the most recent error message.
Modifies a property of the object, creating it if it does not already exist.
Set the object properties based on a named array/hash.
Returns a session storage handler object, only creating it if it doesn't already exist.
Register the functions of this class with PHP's session handler
Open the SessionHandler backend.
Close the SessionHandler backend.
Read the data for a particular session identifier from the SessionHandler backend.
Write session data to the SessionHandler backend.
Destroy the data for a particular session identifier in the SessionHandler backend.
Garbage collect stale sessions from the SessionHandler backend.
Test to see if the SessionHandler is available.
Details
at line 27
JObject
__construct(array $options = array())
Constructor
in JObject at line 56
string
__toString()
Magic method to convert the object to a string gracefully.
in JObject at line 70
mixed
def(string $property, mixed $default = null)
Sets a default value if not alreay assigned
in JObject at line 88
mixed
get(string $property, mixed $default = null)
Returns a property of the object or the default value if the property is not set.
in JObject at line 107
array
getProperties(boolean $public = true)
Returns an associative array of object properties.
in JObject at line 133
string
getError(integer $i = null, boolean $toString = true)
Get the most recent error message.
in JObject at line 165
array
getErrors()
Return all errors, if any.
in JObject at line 180
mixed
set(string $property, mixed $value = null)
Modifies a property of the object, creating it if it does not already exist.
in JObject at line 198
boolean
setProperties(mixed $properties)
Set the object properties based on a named array/hash.
in JObject at line 222
void
setError(string $error)
Add an error message.
in JObject at line 235
string
toString()
deprecated
deprecated
in JSessionStorage at line 47
static JSessionStorage
getInstance(name $name = 'none', array $options = array())
Returns a session storage handler object, only creating it if it doesn't already exist.
in JSessionStorage at line 86
void
register(array $options = array())
Register the functions of this class with PHP's session handler
at line 44
boolean
open(string $save_path, string $session_name)
Open the SessionHandler backend.
at line 54
boolean
close()
Close the SessionHandler backend.
at line 67
string
read(string $id)
Read the data for a particular session identifier from the SessionHandler backend.
at line 81
boolean
write(string $id, string $session_data)
Write session data to the SessionHandler backend.
at line 94
boolean
destroy(string $id)
Destroy the data for a particular session identifier in the SessionHandler backend.
at line 107
boolean
gc(integer $maxlifetime = null)
Garbage collect stale sessions from the SessionHandler backend.
at line 118
static boolean
test()
Test to see if the SessionHandler is available.