MediaWiki  REL1_24
MWMessagePack Class Reference

List of all members.

Static Public Member Functions

static pack ($value)
 Encode a value using MessagePack.

Static Public Attributes

static $bigendian = null

Detailed Description

Definition at line 35 of file MWMessagePack.php.


Member Function Documentation

static MWMessagePack::pack ( value) [static]

Encode a value using MessagePack.

This method supports null, boolean, integer, float, string and array (both indexed and associative) types. Object serialization is not supported.

Parameters:
mixed$value
Returns:
string
Exceptions:
InvalidArgumentExceptionif $value is an unsupported type or too long a string

Definition at line 50 of file MWMessagePack.php.

References $value, and as.

Referenced by MWMessagePackTest\testPack().


Member Data Documentation

MWMessagePack::$bigendian = null [static]

Definition at line 37 of file MWMessagePack.php.


The documentation for this class was generated from the following file: