MDL-25886 method to convert aliased fields returned by user_picture::fields() back...
authorDavid Mudrak <david@moodle.com>
Fri, 7 Jan 2011 13:05:25 +0000 (14:05 +0100)
committerDavid Mudrak <david@moodle.com>
Fri, 7 Jan 2011 13:05:25 +0000 (14:05 +0100)
commit5c0d03ea1c67a6cb8c917ed055e884136a369423
treef9ba6311543d81866269261db7fe9154f5a41516
parent9958e561d81c462667f521b915cc0482f51d097b
MDL-25886 method to convert aliased fields returned by user_picture::fields() back to unaliased form

The new public static method user_picture::unalias() picks the user
picture fields from the given record and maps the properties back to
unaliased form so that the result can be rendered.
Also fixes a forgotten bug in previous commit and adds a unit test for
both aliasing and unaliasing.
lib/outputcomponents.php
lib/simpletest/testoutputcomponents.php [new file with mode: 0644]