File_Helper

Description

Utilitaire pour télécharger des fichiers

Synopsis de la classe

File_Helper {

  /* Propriétés */
  protected array $_filesinfo = array()

  /* Méthodes */
  public void __construct()
  private array _handle_file(string $name, string $type, string $src, string $newfilename, string $oldfilename, array $fileinfo, Abstract_ItemModel $item[, integer $itemid = 0])
  public array download_file(string $name, string $url, string $oldfilename, Abstract_ItemModel $item[, integer $itemid = 0])
  public boolean erase(string $name, string $oldfilename)
  static public boolean filenameIsType(string $filename[, string $type = 'pdf'])
  public array get_file_info(string $name, string $filename)
  public string get_file_location(string $name[, string $thumbnailKey = null])
  public string get_file_path(string $name[, string $thumbnailKey = null])
  static public string getFilenameExtension(string $filename)
  public array import_file(string $name, string $inputname, string $oldfilename, Abstract_ItemModel $item[, integer $itemid = 0])
  public void set_info(string $name, mixed $info)
  public array upload_file(string $name, string $inputname, string $oldfilename, Abstract_ItemModel $item[, integer $itemid = 0])
  public boolean validate_filename(string $name, string $filename)
}