<?php 

/**
* @copyright	Copyright (C) 2009 - 2012 Ready Bytes Software Labs Pvt. Ltd. All rights reserved.
* @license		GNU/GPL, see LICENSE.php
* @package 		RBInstaller
* @subpackage	Front-end
* @contact		team@readybytes.in
*/

class RBInstallerCompatibilityRbappspayplans
{
	public function get_version($installed_extenstions)
	{		 
		$ext = 'component__com_payplans_1';
		if(!isset($installed_extenstions[$ext])){
			return '0.0.0';
		}
		
		$manifest_cache = json_decode($installed_extenstions[$ext]->manifest_cache);
		return $manifest_cache->version;
	}
	
	public function get_return_url()
	{
		return 'index.php?option=com_payplans&view=app&active_tab=ppinstall&active_tab_content=installedapps';
	}
	
	public function get_token()
	{
		return 'payplans';
	}
	
	public function get_color_code()
	{
		return '#0077CC';
	}
}