Elgg  Version 1.9
SessionStorage.php
Go to the documentation of this file.
1 <?php
35 
42  public function start();
43 
49  public function isStarted();
50 
56  public function getId();
57 
64  public function setId($id);
65 
71  public function getName();
72 
79  public function setName($name);
80 
102  public function regenerate($destroy = false, $lifetime = null);
103 
116  public function save();
117 
125  public function has($name);
126 
135  public function get($name, $default = null);
136 
144  public function set($name, $value);
145 
151  public function all();
152 
159  public function replace(array $attributes);
160 
167  public function remove($name);
168 
174  public function clear();
175 }
if($guid==elgg_get_logged_in_user_guid()) $name
Definition: delete.php:21
all()
Returns all attributes.
replace(array $attributes)
Replaces all attributes.
$value
Definition: longtext.php:29
$default
Definition: checkbox.php:36
has($name)
Checks if an attribute is defined.
save()
Force the session to be saved and closed.
getName()
Returns the session name.
regenerate($destroy=false, $lifetime=null)
Regenerates id that represents this storage.
isStarted()
Checks if the session is started.
getId()
Returns the session ID.
setName($name)
Sets the session name.
clear()
Clears all attributes.
start()
Starts the session.
if(!$collection_name) $id
Definition: add.php:17
$attributes
Definition: ajax_loader.php:13
setId($id)
Sets the session ID.