[ 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 Calendar_ViewTypes_View extends Vtiger_IndexAjax_View { 12 13 function __construct() { 14 parent::__construct(); 15 $this->exposeMethod('getViewTypes'); 16 $this->exposeMethod('getSharedUsersList'); 17 } 18 19 function getViewTypes(Vtiger_Request $request) { 20 $viewer = $this->getViewer($request); 21 $moduleName = $request->getModule(); 22 $currentUser = Users_Record_Model::getCurrentUserModel(); 23 $calendarViews = Calendar_Module_Model::getCalendarViewTypes($currentUser->id); 24 25 $viewer->assign('MODULE', $moduleName); 26 $viewer->assign('VIEWTYPES', $calendarViews); 27 $viewer->view('CalendarViewTypes.tpl', $moduleName); 28 } 29 30 /** 31 * Function to get Shared Users 32 * @param Vtiger_Request $request 33 */ 34 function getSharedUsersList(Vtiger_Request $request){ 35 $viewer = $this->getViewer($request); 36 $currentUser = Users_Record_Model::getCurrentUserModel(); 37 38 39 $moduleName = $request->getModule(); 40 $sharedUsers = Calendar_Module_Model::getSharedUsersOfCurrentUser($currentUser->id); 41 $sharedUsersInfo = Calendar_Module_Model::getSharedUsersInfoOfCurrentUser($currentUser->id); 42 43 $viewer->assign('MODULE', $moduleName); 44 $viewer->assign('SHAREDUSERS', $sharedUsers); 45 $viewer->assign('SHAREDUSERS_INFO', $sharedUsersInfo); 46 $viewer->assign('CURRENTUSER_MODEL',$currentUser); 47 $viewer->view('CalendarSharedUsers.tpl', $moduleName); 48 } 49 }
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 |