<?php 

defined('C5_EXECUTE') or die(_("Access Denied."));

class LocalWeatherPackage extends Package {

	protected $pkgHandle = 'local_weather';
	protected $appVersionRequired = '5.3.2';
	protected $pkgVersion = '2.3';

	public function getPackageDescription() {
		return t("Adds local weather conditions and forecast to pages.");
	}

	public function getPackageName() {
		return t("Local Weather");
	}

	public function install() {
		$pkg = parent::install();

		// install block
		BlockType::installBlockTypeFromPackage('local_weather', $pkg);

	}

  	public function uninstall(){
  	$pkg = parent::uninstall();
  	$db = Loader::db();
    $db->execute('DROP TABLE btLocalWeather');
  	}

}