Class MediaHelper

Description
Method Summary
static boolean canUpload (array $file, string &$err)
static void countFiles ( $dir)
static boolean getTypeIcon (string $fileName)
static void imageResize ( $width,  $height,  $target)
static boolean isImage (string $fileName)
static void parseSize ( $size)
Methods
static method canUpload (line 44)

Checks if the file can be uploaded

  • access: public
static boolean canUpload (array $file, string &$err)
  • array $file: File information
  • string &$err: An error message to be returned
static method countFiles (line 161)
  • access: public
static void countFiles ( $dir)
  • $dir
static method getTypeIcon (line 31)

Checks if the file is an image

  • access: public
static boolean getTypeIcon (string $fileName)
  • string $fileName: The filename
static method imageResize (line 143)
  • access: public
static void imageResize ( $width,  $height,  $target)
  • $width
  • $height
  • $target
static method isImage (line 20)

Checks if the file is an image

  • access: public
static boolean isImage (string $fileName)
  • string $fileName: The filename
static method parseSize (line 130)
  • access: public
static void parseSize ( $size)
  • $size

Documentation generated on Mon, 25 Jun 2012 13:56:43 -0500 by phpDocumentor 1.4.4