<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="2.5" method="upgrade">
	<identifier>com:docman</identifier>
	<name>com_docman</name>
    <author>Joomlatools</author>
    <creationDate>April 2016</creationDate>
    <copyright>Copyright (C) 2011 - 2014 Timble CVBA (http://www.timble.net)</copyright>
    <license>GNU GPLv3 - http://www.gnu.org/licenses/gpl.html</license>
    <authorEmail>support@joomlatools.com</authorEmail>
    <authorUrl>www.joomlatools.com</authorUrl>
	<version>2.1.5</version>
	<description/>

    <scriptfile>resources/install/script.php</scriptfile>

	<install>
		<sql>
			<file driver="mysql" charset="utf8">resources/install/install.sql</file>
		</sql>
    </install>
	<uninstall>
		<sql>
			<file driver="mysql" charset="utf8">resources/install/uninstall.sql</file>
		</sql>
	</uninstall>

    <update>
        <schemas>
            <schemapath type="mysql">resources/updates</schemapath>
        </schemas>
    </update>

	<files folder="site/components/com_docman">
		<filename>docman.php</filename>
        <filename>komento_plugin.php</filename>
		<filename>router.php</filename>

		<folder>controller</folder>
        <folder>dispatcher</folder>
		<folder>forms</folder>
		<folder>language</folder>
		<folder>model</folder>
        <folder>resources</folder>
		<folder>template</folder>
		<folder>views</folder>
	</files>

    <media folder="media">
        <folder>com_docman</folder>
    </media>

	<administration>
		<menu>COM_DOCMAN</menu>
		<submenu>
			<menu view="documents" link="option=com_docman&amp;view=documents" img="class:article">COM_DOCMAN_SUBMENU_DOCUMENTS</menu>
            <menu view="categories" link="option=com_docman&amp;view=categories" img="class:category">COM_DOCMAN_SUBMENU_CATEGORIES</menu>
			<menu view="files" link="option=com_docman&amp;view=files" img="class:media">COM_DOCMAN_SUBMENU_FILES</menu>
		</submenu>

		<files folder="administrator/components/com_docman">
			<filename>access.xml</filename>
			<filename>docman.php</filename>
            <filename>version.php</filename>
			<folder>controller</folder>
			<folder>database</folder>
            <folder>dispatcher</folder>
			<folder>filter</folder>
			<folder>language</folder>
			<folder>model</folder>
            <folder>resources</folder>
			<folder>template</folder>
            <folder>views</folder>
        </files>
	</administration>

    <dependencies>
    	<dependency type="koowa-component" element="files">extensions/files</dependency>
    	<dependency type="plugin" element="doclink" folder="editors-xtd">extensions/plg_editorsxtd_doclink</dependency>
    	<dependency type="plugin" element="docman" folder="search">extensions/plg_search_docman</dependency>
        <dependency type="plugin" element="docman" folder="finder">extensions/plg_finder_docman</dependency>
        <dependency type="plugin" element="doclink" folder="content">extensions/plg_content_doclink</dependency>
    	<dependency type="module" element="mod_docman_documents">extensions/mod_docman_documents</dependency>
        <dependency type="module" element="mod_docman_categories">extensions/mod_docman_categories</dependency>
    </dependencies>

    <deleted>
        <file>administrator/language/en-GB/en-GB.com_docman.sys.ini</file>
        <file>administrator/language/en-GB/en-GB.plg_editors-xtd_doclink.ini</file>
        <file>administrator/language/en-GB/en-GB.plg_editors-xtd_doclink.sys.ini</file>
        <file>administrator/components/com_docman/views/categories/tmpl/default.php</file>
        <file>administrator/components/com_docman/views/category/tmpl/form.php</file>
        <file>administrator/components/com_docman/views/config/tmpl/acl.php</file>
        <file>administrator/components/com_docman/views/config/tmpl/form.php</file>
        <file>administrator/components/com_docman/views/doclink/tmpl/default.php</file>
        <file>administrator/components/com_docman/views/doclink/tmpl/tree.php</file>
        <file>administrator/components/com_docman/views/document/tmpl/form.php</file>
        <file>administrator/components/com_docman/views/documents/tmpl/default.php</file>
        <file>administrator/components/com_docman/views/documents/tmpl/list.php</file>
        <file>administrator/components/com_docman/views/documents/tmpl/tree.php</file>
        <file>administrator/components/com_docman/views/files/html.php</file>
        <folder>administrator/components/com_docman/views/files/tmpl/app</folder>
        <file>administrator/components/com_docman/views/files/tmpl/default.php</file>
        <file>administrator/components/com_docman/views/files/tmpl/form.php</file>
        <file>administrator/components/com_docman/views/files/tmpl/import.php</file>
        <file>administrator/components/com_docman/views/files/tmpl/select_icon.php</file>
        <file>administrator/components/com_docman/views/files/tmpl/select.php</file>
        <folder>administrator/components/com_docman/views/file</folder>
        <folder>administrator/components/com_docman/views/list</folder>
        <file>administrator/components/com_docman/views/documents/json.php</file>
        <file>administrator/components/com_docman/manifest.xml</file>
        <file>administrator/components/com_docman/text.php</file>

        <folder>media/com_docman/bootstrap</folder>
        <folder>media/com_docman/images/icons</folder>
        <file>media/com_files/images/glyphicons-halflings.png</file>
        <file>media/com_files/images/grid.png</file>
        <file>media/com_files/images/grid_active.png</file>
        <file>media/com_files/images/list.png</file>
        <file>media/com_files/images/list_active.png</file>
        <file>media/com_docman/images/arrow.png</file>
        <file>media/com_docman/images/mootree.png</file>
        <file>media/com_docman/images/nothumbnail.png</file>
        <file>media/com_docman/images/select2.png</file>
        <file>media/com_docman/images/spinner.gif</file>
        <file>media/com_docman/images/spinner.gif</file>
        <file>media/com_docman/js/categories-tree.js</file>
        <file>media/com_docman/js/chromatable.js</file>
        <file>media/com_docman/js/files.min.js</file>
        <file>media/com_docman/js/jquery-1.7.2.min.js</file>
        <file>media/com_docman/js/less-1.3.0.min.js</file>
        <file>media/com_docman/js/select2.js</file>
        <file>media/com_docman/js/select2.min.js</file>
        <file>media/com_docman/js/select2.validator.js</file>
        <file>media/com_docman/js/doclink.min.js</file>
        <file>media/com_docman/js/submit.js</file>
        <file>media/com_docman/js/categories.default.js</file>
        <file>media/com_docman/js/category.default.js</file>
        <file>media/com_docman/js/files.form.js</file>
        <file>media/com_docman/js/files.js</file>
        <file>media/com_docman/js/files.select.js</file>

        <folder>components/com_docman/views/categories</folder>
        <file>components/com_docman/views/document/json.php</file>
        <file>components/com_docman/views/document/raw.php</file>
        <file>components/com_docman/views/document/tmpl/default.php</file>
        <file>components/com_docman/views/document/tmpl/form.php</file>
        <file>components/com_docman/views/document/tmpl/manage.php</file>
        <file>components/com_docman/views/documents/html.php</file>
        <file>components/com_docman/views/documents/json.php</file>
        <file>components/com_docman/views/documents/tmpl/default.php</file>
        <file>components/com_docman/views/documents/tmpl/default.xml</file>
        <file>components/com_docman/views/documents/tmpl/list.php</file>
        <folder>components/com_docman/views/download</folder>
        <file>components/com_docman/views/filteredlist/tmpl/default.php</file>
        <file>components/com_docman/views/list/tmpl/categories.php</file>
        <file>components/com_docman/views/list/tmpl/default.php</file>
        <file>components/com_docman/views/list/tmpl/table.php</file>
        <file>components/com_docman/views/submit/tmpl/form.php</file>

        <file>modules/mod_docman_documents/tmpl/default.php</file>

        <file>language/en-GB/en-GB.mod_docman_documents.ini</file>
        <file>language/en-GB/en-GB.mod_docman_documents.sys.ini</file>

        <folder>administrator/components/com_files</folder>
        <folder>components/com_files</folder>
        <folder>media/com_files</folder>

        <file>components/com_docman/views/filteredlist/tmpl/gallery.html.php</file>
        <file>components/com_docman/views/filteredlist/tmpl/gallery.xml</file>
        <file>components/com_docman/views/userlist/tmpl/gallery.html.php</file>
        <file>components/com_docman/views/userlist/tmpl/gallery.xml</file>
        <file>components/com_docman/views/userlist/tmpl/tree.html.php</file>
        <file>components/com_docman/views/userlist/tmpl/tree.xml</file>
        <file>components/com_docman/views/userlist/tmpl/treetable.html.php</file>
        <file>components/com_docman/views/userlist/tmpl/treetable.xml</file>

    </deleted>
</extension>
