diff options
author | Reedy <reedy@wikimedia.org> | 2020-05-09 22:40:20 +0000 |
---|---|---|
committer | Reedy <reedy@wikimedia.org> | 2020-05-10 02:00:26 +0100 |
commit | 3f6b213db2bd081524185d94b6df37e7ca379992 (patch) | |
tree | fdc33f9ab56f9207ddc739b0f78d34b9ebaa1f81 /includes/AjaxResponse.php | |
parent | 12faddcfbc95b088b61260ed8a584dbeed223c36 (diff) | |
download | mediawikicore-3f6b213db2bd081524185d94b6df37e7ca379992.tar.gz mediawikicore-3f6b213db2bd081524185d94b6df37e7ca379992.zip |
Explicit visibility modifiers to AjaxResponse.php
Change-Id: I03c11ffca4b5e9b689f675068b381d079619f535
Diffstat (limited to 'includes/AjaxResponse.php')
-rw-r--r-- | includes/AjaxResponse.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/includes/AjaxResponse.php b/includes/AjaxResponse.php index 5f54931a4357..bd1a84c1abc7 100644 --- a/includes/AjaxResponse.php +++ b/includes/AjaxResponse.php @@ -100,7 +100,7 @@ class AjaxResponse { * Set the HTTP response code * @param int|string $code */ - function setResponseCode( $code ) { + public function setResponseCode( $code ) { $this->mResponseCode = $code; } @@ -108,14 +108,14 @@ class AjaxResponse { * Set the HTTP header Content-Type * @param string $type */ - function setContentType( $type ) { + public function setContentType( $type ) { $this->mContentType = $type; } /** * Disable output. */ - function disable() { + public function disable() { $this->mDisabled = true; } @@ -123,7 +123,7 @@ class AjaxResponse { * Add content to the response * @param string $text */ - function addText( $text ) { + public function addText( $text ) { if ( !$this->mDisabled && $text ) { $this->mText .= $text; } @@ -132,7 +132,7 @@ class AjaxResponse { /** * Output text */ - function printText() { + public function printText() { if ( !$this->mDisabled ) { print $this->mText; } @@ -141,7 +141,7 @@ class AjaxResponse { /** * Construct the header and output it */ - function sendHeaders() { + public function sendHeaders() { if ( $this->mResponseCode ) { // For back-compat, it is supported that mResponseCode be a string like " 200 OK" // (with leading space and the status message after). Cast response code to an integer |