当前位置: 首页>>代码示例>>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;未经允许,请勿转载。