Beispiel #1
0
 function __construct()
 {
     parent::__construct();
     $this->exposeMethod('getUsersList');
     $this->exposeMethod('getGroupsList');
     $this->exposeMethod('getActivityType');
 }
Beispiel #2
0
 function __construct()
 {
     global $log;
     $log->debug("Entering ./views/ShowTagCloud.php::__construct");
     parent::__construct();
     $this->exposeMethod('showTags');
 }
 function __construct()
 {
     parent::__construct();
     $this->exposeMethod('showMassEditForm');
     $this->exposeMethod('showAddCommentForm');
     $this->exposeMethod('showComposeEmailForm');
     $this->exposeMethod('showSendSMSForm');
     $this->exposeMethod('showDuplicatesSearchForm');
     $this->exposeMethod('transferOwnership');
 }
Beispiel #4
0
 public function getPagination(Vtiger_Request $request)
 {
     parent::preProcess($request, false);
     $viewer = $this->getViewer($request);
     $moduleName = $request->getModule();
     $moduleModel = Vtiger_Module_Model::getInstance($moduleName);
     $folders = $moduleModel->getFolders();
     $listViewModel = new Reports_ListView_Model();
     $listViewModel->set('module', $moduleModel);
     $folderId = $request->get('viewname');
     if (empty($folderId) || $folderId == 'undefined') {
         $folderId = 'All';
     }
     $sortBy = $request->get('sortorder');
     $orderBy = $request->get('orderby');
     $listViewModel->set('folderid', $folderId);
     $listViewModel->set('orderby', $orderBy);
     $listViewModel->set('sortorder', $sortBy);
     $linkModels = $listViewModel->getListViewLinks();
     $pageNumber = $request->get('page');
     $listViewMassActionModels = $listViewModel->getListViewMassActions();
     if (empty($pageNumber)) {
         $pageNumber = '1';
     }
     $pagingModel = new Vtiger_Paging_Model();
     $pagingModel->set('page', $pageNumber);
     $viewer->assign('PAGING_MODEL', $pagingModel);
     if (!$this->listViewHeaders) {
         $this->listViewHeaders = $listViewModel->getListViewHeaders();
     }
     if (!$this->listViewEntries) {
         $this->listViewEntries = $listViewModel->getListViewEntries($pagingModel);
     }
     $noOfEntries = count($this->listViewEntries);
     $viewer->assign('LISTVIEW_LINKS', $linkModels);
     $viewer->assign('FOLDERS', $folders);
     $viewer->assign('MODULE', $moduleName);
     $viewer->assign('VIEWNAME', $folderId);
     $viewer->assign('PAGE_NUMBER', $pageNumber);
     $viewer->assign('LISTVIEW_MASSACTIONS', $listViewMassActionModels);
     $viewer->assign('LISTVIEW_ENTRIES_COUNT', $noOfEntries);
     if (!$this->listViewCount) {
         $this->listViewCount = $listViewModel->getListViewCount();
     }
     $totalCount = $this->listViewCount;
     $pagingModel->set('totalCount', (int) $totalCount);
     $pageCount = $pagingModel->getPageCount();
     $startPaginFrom = $pagingModel->getStartPagingFrom();
     $viewer->assign('PAGE_COUNT', $pageCount);
     $viewer->assign('LISTVIEW_COUNT', $totalCount);
     $viewer->assign('START_PAGIN_FROM', $startPaginFrom);
     $viewer->assign('PAGING_MODEL', $pagingModel);
     echo $viewer->view('Pagination.tpl', $moduleName, true);
 }
Beispiel #5
0
 function __construct()
 {
     global $log;
     $log->debug("Entering ./views/MassActionAjax.php::__construct");
     parent::__construct();
     $this->exposeMethod('showMassEditForm');
     $this->exposeMethod('showAddCommentForm');
     $this->exposeMethod('showComposeEmailForm');
     $this->exposeMethod('showSendSMSForm');
     $this->exposeMethod('showDuplicatesSearchForm');
     $this->exposeMethod('transferOwnership');
 }
Beispiel #6
0
 public function getPagination(Vtiger_Request $request)
 {
     parent::preProcess($request, false);
     $viewer = $this->getViewer($request);
     $moduleName = $request->getModule();
     $pageNumber = $request->get('page');
     $orderBy = $request->get('orderby');
     $sortOrder = $request->get('sortorder');
     $searchValue = $request->get('search_value');
     if ($sortOrder == "ASC") {
         $nextSortOrder = "DESC";
         $sortImage = "glyphicon glyphicon-chevron-down";
     } else {
         $nextSortOrder = "ASC";
         $sortImage = "glyphicon glyphicon-chevron-up";
     }
     if (empty($pageNumber)) {
         $pageNumber = '1';
     }
     $pagingModel = new Vtiger_Paging_Model();
     $pagingModel->set('page', $pageNumber);
     $listViewModel = new Portal_ListView_Model();
     if (!empty($orderBy)) {
         $listViewModel->set('orderby', $orderBy);
         $listViewModel->set('sortorder', $sortOrder);
     }
     if (!empty($searchValue)) {
         $listViewModel->set('search_value', $searchValue);
     }
     $listviewEntries = $listViewModel->getListViewEntries($pagingModel);
     $pagingInfo = $listViewModel->calculatePageRange($listviewEntries, $pagingModel);
     $pagingModel->set('totalCount', $pagingInfo['recordCount']);
     $pageCount = $pagingModel->getPageCount();
     $startPaginFrom = $pagingModel->getStartPagingFrom();
     $viewer->assign('PAGE_NUMBER', $pageNumber);
     $viewer->assign('PAGE_COUNT', $pageCount);
     $viewer->assign('LISTVIEW_COUNT', $pagingInfo['recordCount']);
     $viewer->assign('START_PAGIN_FROM', $startPaginFrom);
     $viewer->assign('PAGING_MODEL', $pagingModel);
     $viewer->assign('LISTVIEW_ENTRIES', $listviewEntries);
     $viewer->assign('ALPHABET_VALUE', $searchValue);
     $viewer->assign('COLUMN_NAME', $orderBy);
     $viewer->assign('SORT_ORDER', $sortOrder);
     $viewer->assign('SORT_IMAGE', $sortImage);
     $viewer->assign('NEXT_SORT_ORDER', $nextSortOrder);
     $viewer->assign('RECORD_COUNT', count($listviewEntries));
     $viewer->assign('CURRENT_PAGE', $pageNumber);
     $viewer->assign('PAGING_INFO', $pagingInfo);
     echo $viewer->view('Pagination.tpl', $moduleName, true);
 }
 function __construct()
 {
     parent::__construct();
     $this->exposeMethod('showMassEditForm');
     $this->exposeMethod('showAddCommentForm');
     $this->exposeMethod('showComposeEmailForm');
     $this->exposeMethod('showSendSMSForm');
     $this->exposeMethod('showDuplicatesSearchForm');
     $this->exposeMethod('transferOwnership');
     // SalesPlatform begin SPSocialConnector module
     $this->exposeMethod('showSendMessageForm');
     $this->exposeMethod('showEnterURLForm');
     // SalesPlatform end
 }
 function __construct()
 {
     parent::__construct();
     $this->exposeMethod('showTags');
 }
Beispiel #9
0
 public function __construct()
 {
     parent::__construct();
     $this->exposeMethod('getPagination');
 }
Beispiel #10
0
 function __construct()
 {
     parent::__construct();
     $this->exposeMethod('getUsersList');
 }
Beispiel #11
0
 function __construct()
 {
     parent::__construct();
     $this->exposeMethod('showDiscounts');
     $this->exposeMethod('showTaxes');
 }
Beispiel #12
0
 function __construct()
 {
     parent::__construct();
     $this->exposeMethod('getViewTypes');
     $this->exposeMethod('getSharedUsersList');
 }
Beispiel #13
0
 function __construct()
 {
     parent::__construct();
     $this->exposeMethod('changePassword');
 }
Beispiel #14
0
 function __construct()
 {
     parent::__construct();
     $this->exposeMethod('getRssWidget');
     $this->exposeMethod('getRssAddForm');
 }