IEphemeralStorage
in
Defines a data repository with built-in decay.
Tags
Table of Contents
Methods
- delete() : bool
- exists() : bool
- install() : void
- retrieve() : string|null
- retrieveDocument() : DOMDocument|null
- retrieveJSON() : mixed
- retrieveXML() : DOMNode|null
- store() : bool
- storeDocument() : bool
- storeJSON() : bool
- storeXML() : bool
Methods
delete()
public
delete(string $name) : bool
Parameters
- $name : string
Return values
boolexists()
public
exists(string $name, int $modifyTime) : bool
Parameters
- $name : string
- $modifyTime : int
Return values
boolinstall()
public
install() : void
retrieve()
public
retrieve(string $name, int $modifyTime) : string|null
Parameters
- $name : string
- $modifyTime : int
Return values
string|nullretrieveDocument()
public
retrieveDocument(string $name, int $modifyTime) : DOMDocument|null
Parameters
- $name : string
- $modifyTime : int
Return values
DOMDocument|nullretrieveJSON()
public
retrieveJSON(string $name, int $modifyTime) : mixed
Parameters
- $name : string
- $modifyTime : int
retrieveXML()
public
retrieveXML(string $name, int $modifyTime[, DOMDocument $targetDoc = null ]) : DOMNode|null
Parameters
- $name : string
- $modifyTime : int
- $targetDoc : DOMDocument = null
Return values
DOMNode|nullstore()
public
store(string $name, string $payload, int $modifyTime) : bool
Parameters
- $name : string
- $payload : string
- $modifyTime : int
Return values
boolstoreDocument()
public
storeDocument(string $name, DOMDocument $dataDoc, int $modifyTime) : bool
Parameters
- $name : string
- $dataDoc : DOMDocument
- $modifyTime : int
Return values
boolstoreJSON()
public
storeJSON(string $name, mixed $dataObject, int $modifyTime) : bool
Parameters
- $name : string
- $dataObject : mixed
- $modifyTime : int
Return values
boolstoreXML()
public
storeXML(string $name, DOMNode $dataNode, int $modifyTime) : bool
Parameters
- $name : string
- $dataNode : DOMNode
- $modifyTime : int