parent::__construct( $params );
}
- function validate( $value, $alldata ) {
+ public function validate( $value, $alldata ) {
$rows = $this->mParams['rows'];
$columns = $this->mParams['columns'];
*
* @return string
*/
- function getInputHTML( $value ) {
+ public function getInputHTML( $value ) {
$html = '';
$tableContents = '';
$rows = $this->mParams['rows'];
*
* @return string Complete HTML table row
*/
- function getTableRow( $value ) {
+ public function getTableRow( $value ) {
list( $errors, $errorClass ) = $this->getErrorsAndErrorClass( $value );
$inputHtml = $this->getInputHTML( $value );
$fieldType = get_class( $this );
*
* @return array
*/
- function loadDataFromRequest( $request ) {
+ public function loadDataFromRequest( $request ) {
if ( $this->isSubmitAttempt( $request ) ) {
// Checkboxes are just not added to the request arrays if they're not checked,
// so it's perfectly possible for there not to be an entry at all
}
}
- function getDefault() {
+ public function getDefault() {
if ( isset( $this->mDefault ) ) {
return $this->mDefault;
} else {
}
}
- function filterDataForSubmit( $data ) {
+ public function filterDataForSubmit( $data ) {
$columns = HTMLFormField::flattenOptions( $this->mParams['columns'] );
$rows = HTMLFormField::flattenOptions( $this->mParams['rows'] );
$res = [];