MDL-25886 allow user_picture::fields() to be used multiple times within a single...
authorDavid Mudrak <david@moodle.com>
Fri, 7 Jan 2011 01:12:43 +0000 (02:12 +0100)
committerDavid Mudrak <david@moodle.com>
Fri, 7 Jan 2011 01:12:43 +0000 (02:12 +0100)
commit9958e561d81c462667f521b915cc0482f51d097b
treed395a18590fc640e6054b5b51f1c8312b8750738
parent46f4c3932f033ec7d29a3f6ae54a568ea1cacb6b
MDL-25886 allow user_picture::fields() to be used multiple times within a single query

When user table is joined twice or more within a single query, it is
important to be able to provide aliases to all returned files. This
patch adds optional parameter that, if provided, is used as a prefix
for columns aliases. Does not apply to the 'id' column, use $idalias for
that.
lib/outputcomponents.php