X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FFormOptions.php;h=1cfe88e89133d038a6f97fe21679a92b49647166;hb=8720241703a0ee05145bcbeed7b8f3384f5f4bc8;hp=33bbd86a6f686e8027b5298a46b3358655d1f19e;hpb=ba7a5f70f40eaba6b7a7d343da200e1f0fb776b7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/FormOptions.php b/includes/FormOptions.php index 33bbd86a6f..1cfe88e891 100644 --- a/includes/FormOptions.php +++ b/includes/FormOptions.php @@ -22,7 +22,7 @@ * * @file * @author Niklas Laxström - * @author Antoine Musso + * @author Antoine Musso */ /** @@ -83,6 +83,7 @@ class FormOptions implements ArrayAccess { * which will be assumed as INT if the data is an integer. * * @param $data Mixed: value to guess type for + * @throws MWException * @exception MWException Unsupported datatype * @return int Type constant */ @@ -105,6 +106,7 @@ class FormOptions implements ArrayAccess { * * @param $name String: option name * @param $strict Boolean: throw an exception when the option does not exist (default false) + * @throws MWException * @return Boolean: true if option exist, false otherwise */ public function validateName( $name, $strict = false ) { @@ -205,11 +207,12 @@ class FormOptions implements ArrayAccess { /** * Validate and set an option integer value - * The value will be altered to fit in the range. + * The value will be altered to fit in the range. * * @param $name String: option name * @param $min Int: minimum value * @param $max Int: maximum value + * @throws MWException * @exception MWException Option is not of type int * @return null */