MCPcopy Create free account
hub / github.com/XIMDEX/xcms / IStore

Interface IStore

modules/XRAM/inc/IStore.php:37–67  ·  view source on GitHub ↗

* Store interface * Represents a information store. Mainly used to store and retrieves nodes * */

Source from the content-addressed store, hash-verified

35 *
36 */
37interface IStore
38{
39
40 /**
41 * <p>Gets the node content from the specific version/subversion</p>
42 *
43 * @param integer $nodeId The id of the node which retrieve the content from
44 * @param integer $versionId The version id from a node to be retrieved or version number
45 * @param integer $subversion The subversion number
46 */
47 public function getContent($nodeId, $versionId, $subversion = null);
48
49 /**
50 * <p>Sets the node content for the specific version/subversion</p>
51 *
52 * @param string $content The content to be put
53 * @param integer $nodeId The id of the node to set the content
54 * @param integer $versionId The version id from a node to set the content
55 * @param integer $subversion The subversion number
56 */
57 public function setContent($content, $nodeId, $versionId, $subversion);
58
59 /**
60 * <p>Removes the node content from a specific version/version</p>
61 *
62 * @param integer $nodeId The id of the node which retrieve the content from
63 * @param integer $versionId The version id from a node to be retrieved or version number
64 * @param integer $subversion The subversion number
65 */
66 public function deleteContent($nodeId, $versionId, $subversion = null);
67}
68
69?>

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected