Improve serialization of Message, Title
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 2 Jul 2015 16:21:58 +0000 (12:21 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Tue, 7 Jul 2015 19:56:47 +0000 (15:56 -0400)
commit7782819d647bd23eb9680736806213fe3600833f
tree6df6dd41a0343373dea68d77a017e800dbec7021
parent0f87becd685558b6243c4ee001d232b0fd9c5c51
Improve serialization of Message, Title

This allows them to be stored in the session, for example.

Note that properly serializing a Message requires that all its
parameters be serializable as well; we don't attempt to account for that
here.

Change-Id: I3a42a2a883e8eef900eeb02355fc3b064411f642
includes/Message.php
includes/Title.php
includes/api/ApiMessage.php
tests/phpunit/includes/MessageTest.php
tests/phpunit/includes/api/ApiMessageTest.php