<?php
/**
 * @package Legacy
 * @version $Id: InstallListAction.class.php,v 1.1.2.4 2006/08/01 10:32:41 minahito Exp $
 */

if (!defined('XOOPS_ROOT_PATH')) exit();

/**
 * List up non-installation modules.
 */
class Legacy_InstallListAction extends Legacy_Action
{
	var $mModuleObjects = null;
	
	function getDefaultView(&$controller, &$xoopsUser)
	{
		$handler =& xoops_getmodulehandler('non_installation_module');

		$this->mModuleObjects =& $handler->getObjects();
		
		return LEGACY_FRAME_VIEW_INDEX;
	}
	
	function executeViewIndex(&$controller, &$xoopsUser, &$renderer)
	{
		$renderer->setTemplateName("install_list.html");
		$renderer->setAttribute('moduleObjects', $this->mModuleObjects);
	}
}

?>