Public Member Functions | |
add ($name, $default, $type=self::AUTO) | |
delete ($name) | |
validateName ($name, $strict=false) | |
setValue ($name, $value, $force=false) | |
getValue ($name) | |
reset ($name) | |
consumeValue ($name) | |
consumeValues ($names) | |
validateIntBounds ($name, $min, $max) | |
getUnconsumedValues ($all=false) | |
getChangedValues () | |
getAllValues () | |
fetchValuesFromRequest (WebRequest $r, $values=false) | |
offsetExists ($name) | |
offsetGet ($name) | |
offsetSet ($name, $value) | |
offsetUnset ($name) | |
Static Public Member Functions | |
static | guessType ($data) |
Public Attributes | |
const | AUTO = -1 |
const | STRING = 0 |
Automatically detects simple data types. | |
const | INT = 1 |
const | BOOL = 2 |
const | INTNULL = 3 |
Protected Member Functions | |
getValueReal ($option) | |
Protected Attributes | |
$options = array() | |
Useful for namespace selector. |
Definition at line 9 of file FormOptions.php.
FormOptions::add | ( | $ | name, | |
$ | default, | |||
$ | type = self::AUTO | |||
) |
FormOptions::consumeValue | ( | $ | name | ) |
Definition at line 93 of file FormOptions.php.
References $name, getValueReal(), and validateName().
FormOptions::consumeValues | ( | $ | names | ) |
Definition at line 99 of file FormOptions.php.
References $name, $out, getValueReal(), and validateName().
FormOptions::delete | ( | $ | name | ) |
FormOptions::fetchValuesFromRequest | ( | WebRequest $ | r, | |
$ | values = false | |||
) |
Definition at line 157 of file FormOptions.php.
References $name, $type, WebRequest::getBool(), WebRequest::getInt(), WebRequest::getIntOrNull(), and WebRequest::getText().
FormOptions::getAllValues | ( | ) |
FormOptions::getChangedValues | ( | ) |
FormOptions::getUnconsumedValues | ( | $ | all = false |
) |
FormOptions::getValue | ( | $ | name | ) |
Definition at line 75 of file FormOptions.php.
References $name, getValueReal(), and validateName().
Referenced by offsetGet().
FormOptions::getValueReal | ( | $ | option | ) | [protected] |
Definition at line 80 of file FormOptions.php.
Referenced by consumeValue(), consumeValues(), getAllValues(), getUnconsumedValues(), getValue(), and validateIntBounds().
static FormOptions::guessType | ( | $ | data | ) | [static] |
FormOptions::offsetExists | ( | $ | name | ) |
FormOptions::offsetGet | ( | $ | name | ) |
FormOptions::offsetSet | ( | $ | name, | |
$ | value | |||
) |
FormOptions::offsetUnset | ( | $ | name | ) |
FormOptions::reset | ( | $ | name | ) |
Definition at line 88 of file FormOptions.php.
References $name, and validateName().
Referenced by SpecialRecentChanges::buildMainQueryConds().
FormOptions::setValue | ( | $ | name, | |
$ | value, | |||
$ | force = false | |||
) |
Definition at line 65 of file FormOptions.php.
References $name, and validateName().
Referenced by offsetSet(), and validateIntBounds().
FormOptions::validateIntBounds | ( | $ | name, | |
$ | min, | |||
$ | max | |||
) |
Definition at line 111 of file FormOptions.php.
References $name, getValueReal(), setValue(), and validateName().
FormOptions::validateName | ( | $ | name, | |
$ | strict = false | |||
) |
Definition at line 54 of file FormOptions.php.
References $name.
Referenced by consumeValue(), consumeValues(), delete(), getValue(), reset(), setValue(), and validateIntBounds().
FormOptions::$options = array() [protected] |
const FormOptions::AUTO = -1 |
Definition at line 10 of file FormOptions.php.
const FormOptions::BOOL = 2 |
Definition at line 13 of file FormOptions.php.
const FormOptions::INT = 1 |
Definition at line 12 of file FormOptions.php.
const FormOptions::INTNULL = 3 |
Definition at line 14 of file FormOptions.php.
Referenced by WhatLinksHerePage::execute(), and SpecialRecentChanges::getDefaultOptions().
const FormOptions::STRING = 0 |