protected $mFieldTree;
protected $mShowReset = false;
protected $mShowSubmit = true;
+ /** @var string[] */
protected $mSubmitFlags = [ 'primary', 'progressive' ];
protected $mShowCancel = false;
protected $mCancelTarget;
* or the input's default value if it has not been set.
*
* @param WebRequest $request
- * @return string The value
+ * @return mixed The value
*/
public function loadDataFromRequest( $request ) {
if ( $request->getCheck( $this->mName ) ) {
/**
* Get a FieldLayout (or subclass thereof) to wrap this field in when using OOUI output.
- * @param string $inputField
+ * @param OOUI\Widget $inputField
* @param array $config
* @return OOUI\FieldLayout|OOUI\ActionFieldLayout
*/
* Recursively forces values in an array to strings, because issues arise
* with integer 0 as a value.
*
- * @param array $array
+ * @param array|string $array
* @return array|string
*/
public static function forceToStringRecursive( $array ) {
* line above the options in the case of a checkbox matrix, i.e. it's always
* a "vertical-label".
*
- * @param string $value The value to set the input to
+ * @param string|array $value The value to set the input to
*
* @return string Complete HTML table row
*/
/** @var string $mButtonType Value for the button in this field */
protected $mButtonValue;
- /** @var string $mButtonType Value for the button in this field */
+ /** @var string[] $mButtonType Value for the button in this field */
protected $mButtonFlags = [ 'progressive' ];
public function __construct( $info ) {