Yioop_V9.5_Source_Code_Documentation

FiletypeHelper extends Helper
in package

This is a helper class is used to handle used to render the filetype based on the supplied mimetype. It is mainly intended to be used in outputting webpage results for non html pages.

When a page is downloaded the mime type of the page is obtained from the server. This is typically longer and less familiar to people than the file extension. So we want to output the latter.

Tags
author

Chris Pollett

Table of Contents

__construct()  : mixed
The constructor at this point does nothing
render()  : mixed
Outputs the filetype corresponding to the supplied mime type.

Methods

__construct()

The constructor at this point does nothing

public __construct() : mixed
Return values
mixed

render()

Outputs the filetype corresponding to the supplied mime type.

public render(string $mime_type) : mixed
Parameters
$mime_type : string

the mime type that should be output as a file extension

Return values
mixed

        

Search results