Overview

Namespaces

  • None
  • Xmf
    • Database
    • Module
      • Helper
    • Template
  • Xoops
    • Auth
    • Core
      • Cache
      • Database
        • Logging
        • Schema
      • Exception
      • Handler
        • Scheme
      • Kernel
        • Dtype
        • Handlers
        • Model
      • Lists
      • Locale
        • Punic
      • Service
        • Contract
      • Session
      • Text
        • Sanitizer
          • Extensions
      • Theme
        • Plugins
    • Form
    • Html
    • Locale
    • Module
      • Helper
      • Plugin

Classes

  • Assets
  • ComposerUtility
  • Events
  • FilterInput
  • FixedGroups
  • HttpRequest
  • Logger
  • MediaUploader
  • MimeTypes
  • PreloadItem
  • Psr0ClassLoader
  • Psr4ClassLoader
  • Random
  • Registry
  • Request
  • Security
  • XoopsTpl
  • Yaml

Interfaces

  • AttributeInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class MimeTypes

MimeTypes

YProvide translation from file extension to mimetype and back.

At present, this class expects the symfony/yaml package.

Namespace: Xoops\Core
Package: MimeTypes
Category: Xoops\Core\MimeTypes
Copyright: 2014 XOOPS Project (http://xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Richard Griffith richard@geekwright.com
Version: Release: 1.0
Since: 1.0
See: https://github.com/dflydev/dflydev-apache-mime-types
Link: http://xoops.org
Located at oops_lib/Xoops/Core/MimeTypes.php
Methods summary
public static array
# findExtensions( string $type )

findExtensions - given a mimetype, get array of possible file extensions

findExtensions - given a mimetype, get array of possible file extensions

Parameters

$type
mimetype

Returns

array
of applicable extensions, empty if no match
public static string|null
# findType( string $extension )

findType - given a file extensions, return applicable mimetype

findType - given a file extensions, return applicable mimetype

Parameters

$extension
file extension

Returns

string|null
applicable mimetype (string) or null if no match
API documentation generated by ApiGen