Swat/SwatFileEntry.php
public function getNote()
    {
        $message = null;

        if ($this->accept_mime_types !== null && $this->display_mime_types) {
            $displayable_types = $this->getDisplayableTypes();
            $message = new SwatMessage(
                sprintf(
                    Swat::ngettext(
                        'Valid files are the following type: %s.',
                        'Valid files are the following type(s): %s.',
                        count($displayable_types)
                    ),
                    implode(', ', $displayable_types)
                )
            );
        }

        return $message;
    }
public function getNote()
    {
        $message = null;

        if ($this->accept_mime_types !== null && $this->display_mime_types) {
            $displayable_types = $this->getDisplayableTypes();
            $message = new SwatMessage(
                sprintf(
                    Swat::ngettext(
                        'Valid files are the following type: %s.',
                        'Valid files are the following type(s): %s.',
                        count($displayable_types)
                    ),
                    implode(', ', $displayable_types)
                )
            );
        }

        return $message;
    }
public function getNote ( ) { $ message = null ; if ( $ this -> accept_mime_types !== null && $ this -> display_mime_types ) { $ displayable_types = $ this -> getDisplayableTypes ( ) ; $ message = new SwatMessage ( sprintf ( Swat :: ngettext ( 'Valid files are the following type: %s.' , 'Valid files are the following type(s): %s.' , count ( $ displayable_types ) ) , implode ( ', ' , $ displayable_types ) ) ) ; } return $ message ; }
Gets a note specifying the mime types this file entry accepts

The file types are only returned if
{@link SwatFileEntry::$display_mime_types} is set to true and
{@link SwatFileEntry::$accept_mime_types} has entries. If
{@link SwatFileEntry::$human_file_types} is set, the note displays the
human-readable file types where possible.

@return SwatMessage a note listing the accepted mime-types for this
file entry widget or null if any mime-type is
accepted.

@see SwatControl::getNote()
Gets a note specifying the mime types this file entry accepts