Packages

  • Nette
    • Application
      • Application\Diagnostics
      • Application\Responses
      • Application\Routers
      • Application\UI
    • Caching
      • Caching\Storages
    • ComponentModel
    • Config
    • Database
      • Database\Diagnostics
      • Database\Drivers
      • Database\Reflection
      • Database\Table
    • DI
    • Diagnostics
    • Forms
      • Forms\Controls
      • Forms\Rendering
    • Http
    • Iterators
    • Latte
      • Latte\Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
    • Templating
    • Utils
  • NetteModule
  • None
  • PHP

Classes

  • Arrays
  • CriticalSection
  • Finder
  • Html
  • Json
  • LimitedScope
  • MimeTypeDetector
  • Neon
  • Paginator
  • Strings

Exceptions

  • JsonException
  • NeonException
  • RegexpException
  • Overview
  • Package
  • Class
  • Tree

Class MimeTypeDetector

Mime type detector.

Final
Package: Nette\Utils
Author: David Grudl
Located at Utils/MimeTypeDetector.php
Methods summary
final public
# __construct( )

Static class - cannot be instantiated.

Static class - cannot be instantiated.

public static string
# fromFile( string $file )

Returns the MIME content type of file.

Returns the MIME content type of file.

Parameters

$file
string

Returns

string
public static string
# fromString( string $data )

Returns the MIME content type of file.

Returns the MIME content type of file.

Parameters

$data
string

Returns

string
Nette Framework 2.0beta1 (for PHP 5.2) API API documentation generated by ApiGen 2.3.0