Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
file_picker Class Reference

Data structure representing a file picker. More...

Inheritance diagram for file_picker:
renderable

Public Member Functions

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

Public Attributes

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

Detailed Description

Data structure representing a file picker.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Since
Moodle 2.0

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: