Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-21851

user_picture::fields() needs optoin for id column alias

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: General
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      /**

      • Returns a list of required user fields, usefull when fetching required user info from db.
        *
      • In some cases we have to fetch the user data together with some other information,
      • the idalias is useful there because the id would otherwise override the main
      • id of the result record. Please note it has to be converted back to id before rendering.
        *
      • @param string $tableprefix name of database table prefix in query
      • @param string $idalias alias of id field
      • @return string
        */
        public static function fields($tableprefix = '', $idalias = '') {

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            skodak Petr Skoda
            Tester:
            Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Nov/10