+ /** @name ArrayAccess functions
+ * Those function implements PHP ArrayAccess interface
+ * @see http://php.net/manual/en/class.arrayaccess.php
+ */
+ /* @{ */
+ /** Whether option exist*/
+ public function offsetExists( $name ) {
+ return isset( $this->options[$name] );
+ }
+ /** Retrieve an option value */
+ public function offsetGet( $name ) {
+ return $this->getValue( $name );
+ }
+ /** Set an option to given value */
+ public function offsetSet( $name, $value ) {
+ $this->setValue( $name, $value );
+ }
+ /** Delete the option */
+ public function offsetUnset( $name ) {
+ $this->delete( $name );
+ }
+ /* @} */
+}