Class: ItemtypeHelper

Source Location: /CORE/system/classes/item/ItemtypeHelper.php

Class ItemtypeHelper

Class Overview

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

Have a look at the following INI File:

  1. /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!

Located in /CORE/system/classes/item/ItemtypeHelper.php [line 43]



		
				Author(s):
		
  • Kevin Papst
Information Tags:
Version:  $Id: ItemtypeHelper.php,v 1.4 2008/11/30 15:42:54 kpapst Exp $
Copyright:  Copyright (C) Kevin Papst
License:  GNU Public License

Methods

[ Top ]
Method Summary
static mixed   getItemtypeForFile()   Tries to find the Itemtype for the given Filename and/or Mimetype.
static void   getMimetypeForFile()  
static void   getMimetypeInformation()  

[ Top ]
Methods
static method getItemtypeForFile  [line 82]

  static mixed getItemtypeForFile( [ $filename = null], [ $mimetype = null]  )

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

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

Parameters:
   $filename: 
   $mimetype: 

API Tags:
Return:  the ItemtypeID or null


[ Top ]
static method getMimetypeForFile  [line 56]

  static void getMimetypeForFile( $filename  )

Parameters:
   $filename: 


[ Top ]
static method getMimetypeInformation  [line 46]

  static void getMimetypeInformation( )



[ Top ]