code/filesystem/mimetype/extension.php
protected function _getMimetypes()
    {
        if(!isset($this->_mimetypes))
        {
            $file = $this->getConfig()->file;

            if (is_readable($file)) {
                $this->_mimetypes = json_decode(file_get_contents($file), true);
            }
        }

        return $this->_mimetypes;
    }
protected function _getMimetypes()
    {
        if(!isset($this->_mimetypes))
        {
            $file = $this->getConfig()->file;

            if (is_readable($file)) {
                $this->_mimetypes = json_decode(file_get_contents($file), true);
            }
        }

        return $this->_mimetypes;
    }
protected function _getMimetypes ( ) { if ( ! isset ( $ this -> _mimetypes ) ) { $ file = $ this -> getConfig ( ) -> file ; if ( is_readable ( $ file ) ) { $ this -> _mimetypes = json_decode ( file_get_contents ( $ file ) , true ) ; } } return $ this -> _mimetypes ; }
Returns mimetypes list

@return array
Returns mimetypes list