[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 <?php 2 /*+*********************************************************************************** 3 * The contents of this file are subject to the vtiger CRM Public License Version 1.0 4 * ("License"); You may not use this file except in compliance with the License 5 * The Original Code is: vtiger CRM Open Source 6 * The Initial Developer of the Original Code is vtiger. 7 * Portions created by vtiger are Copyright (C) vtiger. 8 * All Rights Reserved. 9 *************************************************************************************/ 10 11 class Vtiger_TagCloud_Dashboard extends Vtiger_IndexAjax_View { 12 13 /** 14 * Function to get the list of Script models to be included 15 * @param Vtiger_Request $request 16 * @return <Array> - List of Vtiger_JsScript_Model instances 17 */ 18 public function getHeaderScripts(Vtiger_Request $request) { 19 20 $jsFileNames = array( 21 '~/libraries/jquery/jquery.tagcloud.js' 22 ); 23 24 $headerScriptInstances = $this->checkAndConvertJsScripts($jsFileNames); 25 return $headerScriptInstances; 26 } 27 28 public function process(Vtiger_Request $request) { 29 $currentUser = Users_Record_Model::getCurrentUserModel(); 30 $viewer = $this->getViewer($request); 31 $moduleName = $request->getModule(); 32 33 $linkId = $request->get('linkid'); 34 35 $widget = Vtiger_Widget_Model::getInstance($linkId, $currentUser->getId()); 36 37 $tags = Vtiger_Tag_Model::getAll($currentUser->id); 38 39 //Include special script and css needed for this widget 40 $viewer->assign('SCRIPTS',$this->getHeaderScripts($request)); 41 42 $viewer->assign('WIDGET', $widget); 43 $viewer->assign('TAGS', $tags); 44 $viewer->assign('MODULE_NAME', $moduleName); 45 46 $content = $request->get('content'); 47 if(!empty($content)) { 48 $viewer->view('dashboards/TagCloudContents.tpl', $moduleName); 49 } else { 50 $viewer->view('dashboards/TagCloud.tpl', $moduleName); 51 } 52 53 } 54 55 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |