Class MediaHelper

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

Checks if the file can be uploaded

boolean canUpload (array $file, string &$err)
  • array $file: File information
  • string &$err: An error message to be returned
countFiles (line 105)
void countFiles ( $dir)
  • $dir
getTypeIcon (line 34)

Checks if the file is an image

boolean getTypeIcon (string $fileName)
  • string $fileName: The filename
imageResize (line 84)
void imageResize ( $width,  $height,  $target)
  • $width
  • $height
  • $target
isImage (line 22)

Checks if the file is an image

boolean isImage (string $fileName)
  • string $fileName: The filename

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