コード例 #1
0
ファイル: Transform.php プロジェクト: Nycto/Round-Eights
 /**
  * Sets a value in the session
  *
  * @param String $key The key to set
  * @param Mixed $value The value to save
  * @return \r8\iface\Session Returns a self reference
  */
 public function set($key, $value)
 {
     parent::set($key, $this->transform->to(serialize($value)));
     return $this;
 }
コード例 #2
0
ファイル: Namespaced.php プロジェクト: Nycto/Round-Eights
 /**
  * Removes all values from the session
  *
  * @return \r8\iface\Session Returns a self reference
  */
 public function clearAll()
 {
     parent::set($this->namespace, array());
     return $this;
 }