Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Public Attributes | List of all members
file_picker Class Reference
Inheritance diagram for file_picker:
renderable

Public Member Functions

 __construct (stdClass $options)
 Constructs a file picker object. More...
 

Public Attributes

stdClass $options
 An object containing options for the file picker.
 

Constructor & Destructor Documentation

◆ __construct()

file_picker::__construct ( stdClass  $options)

Constructs a file picker object.

The following are possible options for the filepicker:

  • accepted_types (*)
  • return_types (FILE_INTERNAL)
  • env (filepicker)
  • client_id (uniqid)
  • itemid (0)
  • maxbytes (-1)
  • maxfiles (1)
  • buttonname (false)
Parameters
stdClass$optionsAn object containing options for the file picker.

The documentation for this class was generated from the following file: