Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401] [Versions 401 and 402] [Versions 401 and 403]

(no description)

File Size: 214 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Drawing:: (13 methods):
  __construct()
  getFilename()
  getIndexedFilename()
  getExtension()
  getMediaFilename()
  getPath()
  setPath()
  getIsURL()
  setIsURL()
  getHashCode()
  getImageTypeForSave()
  getImageFileExtensionForSave()
  getImageMimeType()


Class: Drawing  - X-Ref

__construct()   X-Ref
Create a new Drawing.


getFilename()   X-Ref
Get Filename.

return: string

getIndexedFilename()   X-Ref
Get indexed filename (using image index).


getExtension()   X-Ref
Get Extension.

return: string

getMediaFilename()   X-Ref
Get full filepath to store drawing in zip archive.

return: string

getPath()   X-Ref
Get Path.

return: string

setPath($path, $verifyFile = true, $zip = null)   X-Ref
Set Path.

param: string $path File path
param: bool $verifyFile Verify file
param: ZipArchive $zip Zip archive instance
return: $this

getIsURL()   X-Ref
Get isURL.


setIsURL(bool $isUrl)   X-Ref
Set isURL.

return: $this

getHashCode()   X-Ref
Get hash code.

return: string Hash code

getImageTypeForSave()   X-Ref
Get Image Type for Save.


getImageFileExtensionForSave(bool $includeDot = true)   X-Ref
Get Image file extention for Save.


getImageMimeType()   X-Ref
Get Image mime type.