Lines Matching refs:obj
91 /** @param $obj object to look for
92 * @return whether $obj is contained in storage
94 function contains($obj)
96 if (is_object($obj))
109 /** @param $obj new object to attach to storage or object whose
113 function attach($obj, $inf = NULL)
115 if (is_object($obj) && !$this->contains($obj))
117 $this->storage[] = array($obj, $inf);
121 /** @param $obj object to remove from storage
123 function detach($obj)
125 if (is_object($obj))
139 /** @param $obj new object to attach to storage or object whose
144 function offsetSet($obj, $inf)
146 $this->attach($obj, $inf);
149 /** @param $obj Exising object to look for
151 * @throw UnexpectedValueException if Object $obj is not contained in
155 function offsetGet($obj)
157 if (is_object($obj))
170 /** @param $obj Exising object to look for
174 function offsetUnset($obj)
176 $this->detach($obj);
179 /** @param $obj object to look for
180 * @return whether $obj is contained in storage
182 function offsetEsists($obj)
184 return $this->contains($obj);