當前位置: 首頁>>代碼示例>>PHP>>正文


PHP SugarView類代碼示例

本文整理匯總了PHP中SugarView的典型用法代碼示例。如果您正苦於以下問題:PHP SugarView類的具體用法?PHP SugarView怎麽用?PHP SugarView使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了SugarView類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: get_module_view_defs

 function get_module_view_defs($moduleName, $type, $view)
 {
     require_once 'include/MVC/View/SugarView.php';
     $metadataFile = null;
     $results = array();
     if (empty($moduleName)) {
         return $results;
     }
     $view = strtolower($view);
     if ($view == 'subpanel') {
         $results = $this->get_subpanel_defs($moduleName, $type);
     } else {
         $v = new SugarView(null, array());
         $v->module = $moduleName;
         $v->type = $view;
         $fullView = ucfirst($view) . 'View';
         $metadataFile = $v->getMetaDataFile();
         require_once $metadataFile;
         if ($view == 'list') {
             $results = $listViewDefs[$moduleName];
         } else {
             $results = $viewdefs[$moduleName][$fullView];
         }
     }
     //Add field level acls.
     $results = $this->addFieldLevelACLs($moduleName, $type, $view, $results);
     return $results;
 }
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:28,代碼來源:SugarWebServiceUtilv4.php

示例2: display

 function display()
 {
     $GLOBALS['system_notification_buffer'] = array();
     $GLOBALS['buffer_system_notifications'] = true;
     $GLOBALS['system_notification_count'] = 0;
     $sv = new SugarView();
     $sv->includeClassicFile('modules/Administration/DisplayWarnings.php');
     echo $this->_formatNotificationsForQuickDisplay($GLOBALS['system_notification_buffer'], "modules/Notifications/tpls/systemQuickView.tpl");
     $this->clearFTSFlags();
 }
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:10,代碼來源:view.systemquicklist.php

示例3: get_module_view_defs

 function get_module_view_defs($moduleName, $type, $view)
 {
     require_once 'include/MVC/View/SugarView.php';
     $metadataFile = null;
     $results = array();
     if (empty($moduleName)) {
         return $results;
     }
     $view = strtolower($view);
     switch (strtolower($type)) {
         case 'wireless':
             if ($view == 'list') {
                 require_once 'include/SugarWireless/SugarWirelessListView.php';
                 $GLOBALS['module'] = $moduleName;
                 //WirelessView keys off global variable not instance variable...
                 $v = new SugarWirelessListView();
                 $results = $v->getMetaDataFile();
                 $results = self::formatWirelessListViewResultsToArray($results);
             } elseif ($view == 'subpanel') {
                 $results = $this->get_subpanel_defs($moduleName, $type);
             } else {
                 require_once 'include/SugarWireless/SugarWirelessView.php';
                 $v = new SugarWirelessView();
                 $v->module = $moduleName;
                 $fullView = ucfirst($view) . 'View';
                 $meta = $v->getMetaDataFile('Wireless' . $fullView);
                 $metadataFile = $meta['filename'];
                 require $metadataFile;
                 //Wireless detail metadata may actually be just edit metadata.
                 $results = isset($viewdefs[$meta['module_name']][$fullView]) ? $viewdefs[$meta['module_name']][$fullView] : $viewdefs[$meta['module_name']]['EditView'];
             }
             break;
         case 'default':
         default:
             if ($view == 'subpanel') {
                 $results = $this->get_subpanel_defs($moduleName, $type);
             } else {
                 $v = new SugarView(null, array());
                 $v->module = $moduleName;
                 $v->type = $view;
                 $fullView = ucfirst($view) . 'View';
                 $metadataFile = $v->getMetaDataFile();
                 require_once $metadataFile;
                 if ($view == 'list') {
                     $results = $listViewDefs[$moduleName];
                 } else {
                     $results = $viewdefs[$moduleName][$fullView];
                 }
             }
     }
     //Add field level acls.
     $results = $this->addFieldLevelACLs($moduleName, $type, $view, $results);
     return $results;
 }
開發者ID:sysraj86,項目名稱:carnivalcrm,代碼行數:54,代碼來源:SugarWebServiceUtilv4.php

示例4: ViewMacro

 function ViewMacro()
 {
     parent::SugarView();
     $this->connection = getZendeskConnection();
     $this->bean = new zd_Tickets();
     $this->bean->load_from_db($_REQUEST['record']);
 }
開發者ID:nunoabc,項目名稱:Web2,代碼行數:7,代碼來源:view.macro.php

示例5: __construct

 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::SugarView();
     $this->options['show_header'] = false;
     $this->options['show_footer'] = false;
     $this->options['show_javascript'] = false;
 }
開發者ID:MexinaD,項目名稱:SuiteCRM,代碼行數:10,代碼來源:view.wizard.php

示例6: process

 /**
  * @see SugarView::process()
  */
 public function process()
 {
     global $current_user;
     if (!is_admin($current_user)) {
         sugar_die("Unauthorized access to administration.");
     }
     // Check if default_theme is valid
     if (isset($_REQUEST['default_theme']) && !in_array($_REQUEST['default_theme'], array_keys(SugarThemeRegistry::allThemes()))) {
         sugar_die("Default theme is invalid.");
     }
     if (isset($_REQUEST['disabled_themes'])) {
         $toDecode = html_entity_decode($_REQUEST['disabled_themes'], ENT_QUOTES);
         $disabledThemes = json_decode($toDecode, true);
         if (($key = array_search(SugarThemeRegistry::current()->__toString(), $disabledThemes)) !== FALSE) {
             unset($disabledThemes[$key]);
         }
         $_REQUEST['disabled_themes'] = implode(',', $disabledThemes);
         $configurator = new Configurator();
         $configurator->config['disabled_themes'] = $_REQUEST['disabled_themes'];
         $configurator->config['default_theme'] = $_REQUEST['default_theme'];
         $configurator->handleOverride();
         echo "true";
     } else {
         parent::process();
     }
 }
開發者ID:omusico,項目名稱:sugar_work,代碼行數:29,代碼來源:view.themesettings.php

示例7: _getModuleTab

 /**
  * @see SugarView::_getModuleTab()
  */
 protected function _getModuleTab()
 {
     if (!empty($_REQUEST['merge_module'])) {
         return $_REQUEST['merge_module'];
     }
     return parent::_getModuleTab();
 }
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:10,代碼來源:view.step2.php

示例8: __construct

 public function __construct()
 {
     parent::SugarView();
     // this request vars check in controller
     $this->report_module = $_REQUEST['report_module'];
     $this->record = $_REQUEST['record'];
 }
開發者ID:omusico,項目名稱:sugar_work,代碼行數:7,代碼來源:view.getofficeform.php

示例9: __construct

 public function __construct()
 {
     if (isset($_REQUEST['as_frame']) and $_REQUEST['as_frame'] == "true") {
         $this->options = array('show_header' => true, 'show_title' => false, 'show_subpanels' => false, 'show_search' => false, 'show_footer' => false, 'show_javascript' => true, 'view_print' => true);
         $this->showTitle = false;
     }
     parent::SugarView();
 }
開發者ID:omusico,項目名稱:sugar_work,代碼行數:8,代碼來源:view.showcode.php

示例10: ViewEditFormula

 function ViewEditFormula()
 {
     $this->options['show_footer'] = false;
     if (isset($_REQUEST['embed']) && $_REQUEST['embed']) {
         $this->options['show_header'] = false;
     }
     parent::SugarView();
 }
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:8,代碼來源:view.editformula.php

示例11: ViewSugarpdf

 function ViewSugarpdf()
 {
     parent::SugarView();
     if (isset($_REQUEST["sugarpdf"])) {
         $this->sugarpdf = $_REQUEST["sugarpdf"];
     } else {
         header('Location:index.php?module=' . $_REQUEST['module'] . '&action=DetailView&record=' . $_REQUEST['record']);
     }
 }
開發者ID:delkyd,項目名稱:sugarcrm_dev,代碼行數:9,代碼來源:view.sugarpdf.php

示例12: __construct

 /**
  * Constructor
  *
  * @see SugarView::SugarView()
  */
 public function __construct()
 {
     $this->options['show_title'] = true;
     $this->options['show_header'] = true;
     $this->options['show_footer'] = true;
     $this->options['show_javascript'] = true;
     $this->options['show_subpanels'] = false;
     $this->options['show_search'] = false;
     parent::__construct();
 }
開發者ID:butschster,項目名稱:sugarcrm_dev,代碼行數:15,代碼來源:view.ajaxui.php

示例13: ViewAjax

 /**
  * Constructor
  *
  * @see SugarView::SugarView()
  */
 public function ViewAjax()
 {
     $this->options['show_title'] = false;
     $this->options['show_header'] = false;
     $this->options['show_footer'] = false;
     $this->options['show_javascript'] = false;
     $this->options['show_subpanels'] = false;
     $this->options['show_search'] = false;
     parent::SugarView();
 }
開發者ID:delkyd,項目名稱:sugarcrm_dev,代碼行數:15,代碼來源:view.ajax.php

示例14: getMenu

 /**
  * @see SugarView::getMenu()
  */
 public function getMenu($module = null)
 {
     global $mod_strings, $current_language;
     if (empty($module)) {
         $module = $_REQUEST['import_module'];
     }
     $old_mod_strings = $mod_strings;
     $mod_strings = return_module_language($current_language, $module);
     $returnMenu = parent::getMenu($module);
     $mod_strings = $old_mod_strings;
     return $returnMenu;
 }
開發者ID:MexinaD,項目名稱:SuiteCRM,代碼行數:15,代碼來源:view.error.php

示例15: __construct

 /**
  * Constructor.
  */
 public function __construct($bean = null, $view_object_map = array())
 {
     parent::__construct($bean, $view_object_map);
     $this->options['show_header'] = false;
     $this->options['show_footer'] = false;
     $this->options['show_javascript'] = false;
 }
開發者ID:sacredwebsite,項目名稱:SuiteCRM,代碼行數:10,代碼來源:view.wizard.php


注:本文中的SugarView類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。