MediaWiki master
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. More...
Static Public Member Functions | |
static | inflate (string $data) |
For content that has been compressed with deflate in the client, try to uncompress it with inflate. | |
static | isDeflated (string $data) |
Whether the content is deflated. | |
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Server-side helper for client-side compressed content.
Definition at line 24 of file Deflate.php.
|
static |
For content that has been compressed with deflate in the client, try to uncompress it with inflate.
If data is not prefixed with 'rawdeflate,' it will be returned unmodified.
Data can be compressed in the client using the 'mediawiki.deflate' module:
string | $data | Deflated data |
InvalidArgumentException | If the data wasn't deflated |
Definition at line 53 of file Deflate.php.
|
static |
Whether the content is deflated.
string | $data |
Definition at line 33 of file Deflate.php.