Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
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: