X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FFormOptions.php;h=c91c336762f645330fa0180d9b5297262982441e;hb=c8aa42bbfb93e5c19a49664ccee200b304330f69;hp=cd6e207231358a06f45c60e20a423d0a88ef4cb6;hpb=55d5f04e56c1fdddd13073b2749d50778d1e3770;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/FormOptions.php b/includes/FormOptions.php index cd6e207231..c91c336762 100644 --- a/includes/FormOptions.php +++ b/includes/FormOptions.php @@ -44,7 +44,7 @@ class FormOptions implements ArrayAccess { /** Integer type, maps guessType() to WebRequest::getInt() */ const INT = 1; /** Float type, maps guessType() to WebRequest::getFloat() - * @since 1.23 */ + * @since 1.23 */ const FLOAT = 4; /** Boolean type, maps guessType() to WebRequest::getBool() */ const BOOL = 2; @@ -373,22 +373,37 @@ class FormOptions implements ArrayAccess { * @see http://php.net/manual/en/class.arrayaccess.php */ /* @{ */ - /** Whether the option exists. */ + /** + * Whether the option exists. + * @param string $name + * @return bool + */ public function offsetExists( $name ) { return isset( $this->options[$name] ); } - /** Retrieve an option value. */ + /** + * Retrieve an option value. + * @param string $name + * @return mixed + */ public function offsetGet( $name ) { return $this->getValue( $name ); } - /** Set an option to given value. */ + /** + * Set an option to given value. + * @param string $name + * @param mixed $value + */ public function offsetSet( $name, $value ) { $this->setValue( $name, $value ); } - /** Delete the option. */ + /** + * Delete the option. + * @param string $name + */ public function offsetUnset( $name ) { $this->delete( $name ); }