return false;
}
+ /**
+ * Same as self::show with the difference, that the form will be
+ * added to the output, no matter, if the validation was good or not.
+ * @return bool|Status Whether submission was successful.
+ */
+ function showAlways() {
+ $this->prepareForm();
+
+ $result = $this->tryAuthorizedSubmit();
+
+ $this->displayForm( $result );
+
+ return $result;
+ }
+
/**
* Validate all the fields, and call the submission callback
* function if everything is kosher.
*/
public function setSubmitDestructive() {
$this->mSubmitFlags = array( 'destructive', 'primary' );
+
+ return $this;
}
/**
*/
public function setSubmitProgressive() {
$this->mSubmitFlags = array( 'progressive', 'primary' );
+
+ return $this;
}
/**
$hasLabel = false;
// Conveniently, PHP method names are case-insensitive.
+ // For grep: this can call getDiv, getRaw, getInline, getVForm, getOOUI
$getFieldHtmlMethod = $displayFormat == 'table' ? 'getTableRow' : ( 'get' . $displayFormat );
foreach ( $fields as $key => $value ) {