42 #[\ReturnTypeWillChange] 50 #[\ReturnTypeWillChange] 51 public function read($session_id) {
56 $result = $this->db->getDataRow($select);
67 #[\ReturnTypeWillChange] 68 public function write($session_id, $session_data) {
74 if ($this->
read($session_id)) {
80 return $this->db->updateData($update);
90 return $this->db->insertData($insert) !==
false;
96 #[\ReturnTypeWillChange] 104 #[\ReturnTypeWillChange] 109 $this->db->deleteData(
$delete);
117 #[\ReturnTypeWillChange] 118 public function gc($max_lifetime) {
122 return (
bool) $this->db->deleteData(
$delete);
if(!$user||!$user->canDelete()) $name
static table($table, $alias=null)
{}
trait TimeUsing
Adds methods for setting the current time (for testing)
getCurrentTime($modifier= '')
Get the (cloned) time.
static intoTable($table)
{}
__construct(\Elgg\Database $db)
Constructor.
const ELGG_VALUE_TIMESTAMP
static fromTable($table, $alias=null)
{}
Database session handler.
write($session_id, $session_data)
static fromTable($table, $alias=null)
{}
elgg_get_config($name, $default=null)
Get an Elgg configuration value.