SproutCMS

This is the code documentation for the SproutCMS project

function getType()

Determines the file type from a file name by examining its extension

Usage

int File::getType ( string $filename );

Arguments

  1. string $filename
    The file name

Return value

  • int
    One of the FileConstants::TYPE_* values, see FileConstants.
            If the type couldn't be determined, FileConstants::TYPE_OTHER is returned.