Tuskfish API
  • Package
  • Class

Packages

  • content
  • core
  • database
  • installation
  • security
  • user
  • utilities

Classes

  • TfishUtils

Class TfishUtils

Provides a variety of utility functions used by the core.

Holds utility functions that return lists of mimetypes, timezone offsets and similar necessary trivia.

Package: utilities
Copyright: The ImpressCMS Project http://www.impresscms.org/
License: GNU General Public License (GPL)
Author: marcan marcan@impresscms.org
Author: Simon Wilkinson simon@isengard.biz
Version: Release: 1.0
Since: 1.0
Located at trust_path/libraries/tuskfish/class/TfishUtils.php

Methods summary

public static array
# getMimetypes( )

Return a list of mimetypes.

Return a list of mimetypes.

This list is not exhaustive, but it does cover most things that a sane person would want. Feel free to add more if you wish, but do NOT use this as a whitelist of permitted mimetypes, it is just a reference.

Returns

array
Array of mimetypes with extension as key.

Copyright

The ImpressCMS Project http://www.impresscms.org/

License

GNU General Public License (GPL)

Author

marcan marcan@impresscms.org
public static array
# getTimezones( )

Provide a list of timezone offsets.

Provide a list of timezone offsets.

Returns

array
Array of timezone offsets.
Tuskfish API API documentation generated by ApiGen