Class ItemtypeHelper

Description

The ItemtypeHelper holds useful methods for matching Files (e.g. Uploads) against BIGACE Itemtypes.

Have a look at the following INI File:

  1. _BIGACE_DIR_ROOT.'/system/config/mimetypes.ini'

It defines all allowed Filetypes and their Itemtype mapping. If you cannot upload a special File, try to add a definition in the INI file!

  • version: $Id: ItemtypeHelper.php,v 1.3 2006/11/26 22:04:09 kpapst Exp $
  • copyright: Copyright (C) 2002-2006 Kevin Papst
  • author: Kevin Papst
  • license: GNU Public License


			
Method Summary
mixed getItemtypeForFile ([ $filename = null], [ $mimetype = null])
Methods
getItemtypeForFile (line 54)

Tries to find the Itemtype for the given Filename and/or Mimetype.

You can leave one of the parameter empty (pass null).

  • return: the ItemtypeID or null
mixed getItemtypeForFile ([ $filename = null], [ $mimetype = null])
  • $filename
  • $mimetype

Documentation generated by phpDocumentor 1.3.1