mirror of
https://github.com/Studio-42/elFinder.git
synced 2026-06-20 16:18:14 +00:00
2a860167b8
- replace curl_close() handling for PHP 8 CurlHandle compatibility - refine session cookie params and read-only session behavior - change session get() default fallback from '' to null - improve OAuth callback window close/message fallback - add type-safe adjustments in watermark processing
59 lines
1.1 KiB
PHP
59 lines
1.1 KiB
PHP
<?php
|
|
|
|
/**
|
|
* elFinder - file manager for web.
|
|
* Session Wrapper Interface.
|
|
*
|
|
* @package elfinder
|
|
* @author Naoki Sawada
|
|
**/
|
|
|
|
interface elFinderSessionInterface
|
|
{
|
|
/**
|
|
* Session start
|
|
*
|
|
* @return self
|
|
**/
|
|
public function start();
|
|
|
|
/**
|
|
* Session write & close
|
|
*
|
|
* @return self
|
|
**/
|
|
public function close();
|
|
|
|
/**
|
|
* Get session data
|
|
* This method must be equipped with an automatic start / close.
|
|
*
|
|
* @param string $key Target key
|
|
* @param mixed $empty Return value of if session target key does not exist
|
|
* and explicit $empty can be used as a type hint
|
|
*
|
|
* @return mixed
|
|
**/
|
|
public function get($key, $empty = null);
|
|
|
|
/**
|
|
* Set session data
|
|
* This method must be equipped with an automatic start / close.
|
|
*
|
|
* @param string $key Target key
|
|
* @param mixed $data Value
|
|
*
|
|
* @return self
|
|
**/
|
|
public function set($key, $data);
|
|
|
|
/**
|
|
* Get session data
|
|
*
|
|
* @param string $key Target key
|
|
*
|
|
* @return self
|
|
**/
|
|
public function remove($key);
|
|
}
|