Swat/SwatFileEntry.php
protected function getDisplayableTypes()
    {
        $displayable_types = array();

        foreach ($this->accept_mime_types as $mime_type) {
            $displayable_type = isset($this->human_file_types[$mime_type])
                ? $this->human_file_types[$mime_type]
                : $mime_type;

            // Use the value as the key to de-dupe.
            $displayable_types[$displayable_type] = $displayable_type;
        }

        return $displayable_types;
    }
protected function getDisplayableTypes()
    {
        $displayable_types = array();

        foreach ($this->accept_mime_types as $mime_type) {
            $displayable_type = isset($this->human_file_types[$mime_type])
                ? $this->human_file_types[$mime_type]
                : $mime_type;

            // Use the value as the key to de-dupe.
            $displayable_types[$displayable_type] = $displayable_type;
        }

        return $displayable_types;
    }
protected function getDisplayableTypes ( ) { $ displayable_types = array ( ) ; foreach ( $ this -> accept_mime_types as $ mime_type ) { $ displayable_type = isset ( $ this -> human_file_types [ $ mime_type ] ) ? $ this -> human_file_types [ $ mime_type ] : $ mime_type ; // Use the value as the key to de-dupe. $ displayable_types [ $ displayable_type ] = $ displayable_type ; } return $ displayable_types ; }
Gets a unique array of acceptable human-readable file and mime types for
display.

If {@link SwatFileEntry::$human_file_types} is set, and the mime type
exists within it, we display the corresponding human-readable file type.
Otherwise we fall back to the mime type.

@return array unique mime and human-readable file types.
Gets a unique array of acceptable human - readable file and mime types for display .