\seekquarry\yioop\views\helpersFiletypeHelper

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 outputing 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.

Summary

Methods
Properties
Constants
__construct()
render()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() 

The constructor at this point does nothing

render()

render(string  $mime_type) 

Outputs the filetype corresponding to the supplied mime type.

Parameters

string $mime_type

the mime type that should be output as a file extention