コード例 #1
0
	function execute($modelParams, $params, $templatePath)
	{
		$module =& AriModuleHelper::getModuleById(AriUtils2::getParam($modelParams, 'id'));
		if (empty($module))
			return ;
			
		$content = AriModuleHelper::renderModule($module);
		if (empty($content))
			return ;

		$modelParams['text'] = $content;
		$modelParams['modal'] = $params['_default']['modal'];
		$modelParams['group'] = $params['_default']['groupName'];
		$modelParams['bgColor'] = isset($params['_default']['bgColor']) ? $params['_default']['bgColor'] : '';
		
		parent::execute($modelParams, $params, $templatePath);
	}