\MediaHelper
Synopsis
class MediaHelper
{
- // methods
- public static boolean isImage()
- public static string getTypeIcon()
- public static boolean canUpload()
- public static string parseSize()
- public static array imageResize()
- public static array countFiles()
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