mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-03-01 15:21:02 +03:00
42 lines
1.1 KiB
PHP
42 lines
1.1 KiB
PHP
|
<?php
|
||
|
/**
|
||
|
* Zend Framework (http://framework.zend.com/)
|
||
|
*
|
||
|
* @link http://github.com/zendframework/zf2 for the canonical source repository
|
||
|
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
|
||
|
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||
|
*/
|
||
|
|
||
|
namespace Zend\Session\Storage;
|
||
|
|
||
|
use ArrayAccess;
|
||
|
use Countable;
|
||
|
use Serializable;
|
||
|
use Traversable;
|
||
|
|
||
|
/**
|
||
|
* Session storage interface
|
||
|
*
|
||
|
* Defines the minimum requirements for handling userland, in-script session
|
||
|
* storage (e.g., the $_SESSION superglobal array).
|
||
|
*/
|
||
|
interface StorageInterface extends Traversable, ArrayAccess, Serializable, Countable
|
||
|
{
|
||
|
public function getRequestAccessTime();
|
||
|
|
||
|
public function lock($key = null);
|
||
|
public function isLocked($key = null);
|
||
|
public function unlock($key = null);
|
||
|
|
||
|
public function markImmutable();
|
||
|
public function isImmutable();
|
||
|
|
||
|
public function setMetadata($key, $value, $overwriteArray = false);
|
||
|
public function getMetadata($key = null);
|
||
|
|
||
|
public function clear($key = null);
|
||
|
|
||
|
public function fromArray(array $array);
|
||
|
public function toArray($metaData = false);
|
||
|
}
|