Developer Documentation

  • Bug fixes for general core bugs in 3.0.x ended 14 November 2016 (12 months).
  • Bug fixes for security issues in 3.0.x ended 8 May 2017 (18 months).
  • minimum PHP 5.4.4 (always use latest PHP 5.4.x or 5.5.x on Windows - For PHP 7.0.x support, upgrade to Moodle 3.0.1 or later. PHP 7.1.x is not supported by Moodle 3.0.
  • /webservice/
    FolderUp one level  
    Fileexternallib.php [source] [320 lines]   external API for mobile web services
    Filelib.php         [source] [1796 lines]  Web services utility functions and classes
    Filepluginfile.php  [source] [57 lines]    A script to serve files from web service client
    Filerenderer.php    [source] [837 lines]   
    Fileupload.php      [source] [194 lines]   Accept uploading files by web service token POST params: token => the web service user token (needed for authentication) filepath => the private file aera path (where files will be stored) [_FILES] => for example you can send the files with , or with curl magic: 'file_1' => '@/path/to/file', or ... filearea => 'private' or 'draft' (default = 'private'). These are the only 2 areas we are allowing direct uploads via webservices. The private file area is deprecated - please don't use it. itemid => For draft areas this is the draftid - this can be used to add a list of files to a draft area in separate requests. If it is 0, a new draftid will be generated. For private files, this is ignored.
    Filewsdoc.php       [source] [93 lines]    Web services auto-generated documentation

    Search This Site: