X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fhtmlform%2Ffields%2FHTMLCheckMatrix.php;h=46172a581bd2a26dd3c11810e31f4fcc815bc3c5;hp=b324fb6afda3b7e35ec31b65ef7a9b1480ad70f0;hb=9964ca1a390c446397dcd466916ffed356cdc3c9;hpb=4a975b8099ee11b15421d03be02206935a8422f1 diff --git a/includes/htmlform/fields/HTMLCheckMatrix.php b/includes/htmlform/fields/HTMLCheckMatrix.php index b324fb6afd..46172a581b 100644 --- a/includes/htmlform/fields/HTMLCheckMatrix.php +++ b/includes/htmlform/fields/HTMLCheckMatrix.php @@ -38,7 +38,7 @@ class HTMLCheckMatrix extends HTMLFormField implements HTMLNestedFilterable { parent::__construct( $params ); } - function validate( $value, $alldata ) { + public function validate( $value, $alldata ) { $rows = $this->mParams['rows']; $columns = $this->mParams['columns']; @@ -65,7 +65,7 @@ class HTMLCheckMatrix extends HTMLFormField implements HTMLNestedFilterable { if ( count( $validValues ) == count( $value ) ) { return true; } else { - return $this->msg( 'htmlform-select-badoption' )->parse(); + return $this->msg( 'htmlform-select-badoption' ); } } @@ -79,7 +79,7 @@ class HTMLCheckMatrix extends HTMLFormField implements HTMLNestedFilterable { * * @return string */ - function getInputHTML( $value ) { + public function getInputHTML( $value ) { $html = ''; $tableContents = ''; $rows = $this->mParams['rows']; @@ -186,7 +186,7 @@ class HTMLCheckMatrix extends HTMLFormField implements HTMLNestedFilterable { * * @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 ); @@ -224,7 +224,7 @@ class HTMLCheckMatrix extends HTMLFormField implements HTMLNestedFilterable { * * @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 @@ -235,7 +235,7 @@ class HTMLCheckMatrix extends HTMLFormField implements HTMLNestedFilterable { } } - function getDefault() { + public function getDefault() { if ( isset( $this->mDefault ) ) { return $this->mDefault; } else { @@ -243,7 +243,7 @@ class HTMLCheckMatrix extends HTMLFormField implements HTMLNestedFilterable { } } - function filterDataForSubmit( $data ) { + public function filterDataForSubmit( $data ) { $columns = HTMLFormField::flattenOptions( $this->mParams['columns'] ); $rows = HTMLFormField::flattenOptions( $this->mParams['rows'] ); $res = [];