Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250706) (a6b17d8f6bd)
core\output\file_picker Class Reference
Inheritance diagram for core\output\file_picker:
core\output\renderable

Public Member Functions

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

Public Attributes

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

Constructor & Destructor Documentation

◆ __construct()

core\output\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: