Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2012
    Posts
    137
    Thanks
    1
    Thanked 1 Time in 1 Post

    Does anyone here know how to retrieve information from moodle LMS

    Hello,

    I am setting up a page on a Moodle LMS where a student can select a paper topic from a drop-down menu. What I need to do is get the student's information from the LMS so that I can populate the page based on which course they are in, their username, their e-mail etc.

    I assume I will need to make a DB call at some point for things like e-mail and name but I was hoping that since the student will be logged in I can get the course name and their user name from the session.

    I don't know a lot about this so can someone explain this a bit?

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,014
    Thanks
    79
    Thanked 4,436 Times in 4,401 Posts
    I don't see how any of this is relevant to JAVASCRIPT.

    Moodle is written in PHP, and the source code is freely available. Also, the docs tell you how to create plugins and give a full list of the APIs you can use:
    http://docs.moodle.org/dev/Main_Page

    I would say that, after you have read *ALL* the relevant documentation about plugins and APIs, if you still have questions then you need to post in one of the Moodle forums:
    https://moodle.org/forums/
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •