<?php   defined('C5_EXECUTE') or die(_("Access Denied."));

class FileTreePackage extends Package
{
	protected $pkgHandle = 'file_tree';
	protected $appVersionRequired = '5.4.1';
	protected $pkgVersion = '1.3.1';
	
	public function getPackageDescription() 
	{
		return t("A directory tree with file uploading and group permission settings.");
	}
	
	public function getPackageName() 
	{
		return "FileTree";
	}	
	
	public function install()
	{
		$pkg = parent::install();
		BlockType::installBlockTypeFromPackage($this->pkgHandle, $pkg);
	}
	
	public function uninstall()
	{
		parent::uninstall();

		$db = Loader::db();
		$db->Execute('DROP TABLE IF EXISTS btFileTree');
		$db->Execute('DROP TABLE IF EXISTS btFileTreeNodes');		
	}
}