\MediaHelper

    Synopsis

    class MediaHelper {
    }

    Methods

    public

    • canUpload() — Checks if the file can be uploaded
    • countFiles() — Counts the files and directories in a directory that are not php or html files.
    • getTypeIcon() — Gets the file extension for the purpose of using an icon.
    • imageResize() — Calculate the size of a resized image
    • isImage() — Checks if the file is an image
    • parseSize() — Method to parse a file size