Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
Moodle\H5peditorFile Class Reference

Public Member Functions

 __construct ($interface)
 Constructor.
 
 check ($mimes)
 Check current file up agains mime types and extensions in the given list.
 
 getName ()
 Get the name of the current file.
 
 getResult ()
 Get result from file processing.
 
 getType ()
 Get the type of the current file.
 
 isLoaded ()
 Indicates if an uploaded file was found or not.
 
 printResult ()
 Print result from file processing.
 
 validate ()
 Validate the file.
 

Public Attributes

 $extension
 
 $mime
 
 $name
 
 $path
 
 $size
 
 $type
 

Constructor & Destructor Documentation

◆ __construct()

Moodle\H5peditorFile::__construct ( $interface)

Constructor.

Process data for file uploaded through the editor.

Member Function Documentation

◆ check()

Moodle\H5peditorFile::check ( $mimes)

Check current file up agains mime types and extensions in the given list.

Parameters
array$mimesList to check against.
Return values
boolean

◆ getName()

Moodle\H5peditorFile::getName ( )

Get the name of the current file.

Return values
string

◆ getType()

Moodle\H5peditorFile::getType ( )

Get the type of the current file.

Return values
string

◆ isLoaded()

Moodle\H5peditorFile::isLoaded ( )

Indicates if an uploaded file was found or not.

Return values
boolean

◆ validate()

Moodle\H5peditorFile::validate ( )

Validate the file.

Return values
boolean

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