6 if (!defined(
"XOOPS_ROOT_PATH")) {
7 die(
"XOOPS root path not defined");
17 $this->_entries = array();
18 $this->_locks = array();
23 static $instance =
false;
33 trigger_error(
'Unable to set entry `' . $key .
'`. Entry is locked.', E_USER_WARNING);
37 $this->_entries[$key] = $item;
43 unset($this->_entries[$key]);
48 if (isset($this->_entries[$key]) ==
false) {
52 return $this->_entries[$key];
57 return ($this->
getEntry($key) !== null);
62 $this->_locks[$key] =
true;
68 unset($this->_locks[$key]);
73 return (isset($this->_locks[$key]) ==
true);
78 $this->_entries = array();
79 $this->_locks = array();