13 private $store = array();
24 $store = $codec->decode($str,
true);
29 $this->store = $store;
37 $this->store = array();
48 public function add(
$class, $propName, $pName, $pValue)
50 if (!isset($this->store[
$class])) {
51 $this->store[
$class] = array();
53 if (!isset($this->store[$class][$propName])) {
54 $this->store[
$class][$propName] = array();
56 $this->store[
$class][$propName][$pName] = $pValue;
67 public function get(
$class, $propName = null, $pName = null)
69 if (!isset($this->store[
$class])) {
72 if ($propName === null) {
73 if ($pName === null) {
74 return $this->store[
$class];
77 foreach ($this->store[$class] as $propName => $elmt) {
78 if (isset($elmt[$pName])) {
79 $res[$propName] = $elmt;
85 if ($pName === null) {
86 if (isset($this->store[$class][$propName])) {
87 return $this->store[
$class][$propName];
90 if (isset($this->store[$class]) && isset($this->store[$class][$propName])) {
91 return $this->store[
$class][$propName][$pName];
106 $str = $codec->encode($this->store);
108 catch(Exception $e) {
add($class, $propName, $pName, $pValue)