<?php  defined('C5_EXECUTE') or die(_("Access Denied."));
class MetroWeatherPackage extends Package {

    protected $pkgHandle = 'metro_weather';
    protected $appVersionRequired = '5.5.1';
    protected $pkgVersion = '1.1';

	public function getPackageDescription() {
		return t('Display a metro-style weather forecast widget.');
	}
	
	public function getPackageName() {
		return t("Metro Weather");
	}

    public function install() {
        $pkg = parent::install();
		// load stuff we need
		Loader::model('collection_types');
		Loader::model('collection_attributes');
		Loader::model('package');
        // install block 
        BlockType::installBlockTypeFromPackage('metro_weather', $pkg); 
    }
	public function uninstall() {
		parent::uninstall();
		//make sure the block table gets dropped
		$db = Loader::db();
		$db->Execute('DROP TABLE IF EXISTS btMetroWeather');
	}
}
?>