当前位置: 首页>>代码示例>>PHP>>正文


PHP ViewList::process方法代码示例

本文整理汇总了PHP中ViewList::process方法的典型用法代码示例。如果您正苦于以下问题:PHP ViewList::process方法的具体用法?PHP ViewList::process怎么用?PHP ViewList::process使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ViewList的用法示例。


在下文中一共展示了ViewList::process方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: process

 /**
  * @see SugarView::process()
  */
 public function process()
 {
     $this->options['show_all'] = false;
     $this->options['show_javascript'] = true;
     $this->options['show_footer'] = false;
     $this->options['show_header'] = false;
     parent::process();
 }
开发者ID:aldridged,项目名称:gtg-sugar,代码行数:11,代码来源:view.mappingproperties.php

示例2: process

 function process()
 {
     parent::process();
 }
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:4,代码来源:view.sourceproperties.php

示例3: process

 /**
  * @see SugarView::process()
  */
 public function process()
 {
     //Load Sources Here...
     if (!empty($_REQUEST['merge_module'])) {
         $this->_merge_module = $_REQUEST['merge_module'];
     } else {
         //Error
     }
     $moduleError = false;
     require_once 'include/connectors/utils/ConnectorUtils.php';
     require_once 'include/connectors/sources/SourceFactory.php';
     $modules_sources = ConnectorUtils::getDisplayConfig();
     if (empty($modules_sources)) {
         $moduleError = true;
     } else {
         $this->_modules_sources = $modules_sources;
         if (empty($this->_modules_sources[$this->_merge_module]) || empty($this->_modules_sources[$this->_merge_module])) {
             $moduleError = true;
         }
     }
     if ($moduleError) {
         $GLOBALS['log']->error($GLOBALS['mod_strings']['ERROR_NO_CONNECTOR_DISPLAY_CONFIG_FILE']);
         echo $GLOBALS['mod_strings']['ERROR_NO_CONNECTOR_DISPLAY_CONFIG_FILE'];
         return;
     }
     $_SESSION['merge_module'] = $this->_merge_module;
     $this->seed = BeanFactory::getBean($this->_merge_module, $_REQUEST['record']);
     //search form
     $searchdefs = ConnectorUtils::getSearchDefs();
     $this->_searchDefs = isset($searchdefs) ? $searchdefs : array();
     $mapped_fields = array();
     unset($_SESSION['searchDefs'][$this->_merge_module][$this->seed->id]);
     $sources = $modules_sources[$this->_merge_module];
     $source = array_shift($sources);
     foreach ($sources as $lsource) {
         if (!empty($this->_searchDefs[$lsource][$this->_merge_module])) {
             $s = ConnectorFactory::getInstance($lsource);
             if ($s->getSource()->isEnabledInWizard()) {
                 $source_map = $s->getModuleMapping($this->_merge_module);
                 foreach ($this->_searchDefs[$lsource][$this->_merge_module] as $key) {
                     $beanKey = $key;
                     if (!empty($source_map[$key])) {
                         $beanKey = $source_map[$key];
                     }
                     if (!empty($this->seed->{$beanKey})) {
                         $val = $this->seed->{$beanKey};
                         if (is_object($val) && get_class($val) == 'SugarEmailAddress') {
                             $emailaddress = '';
                             if (!empty($val->addresses)) {
                                 foreach ($val->addresses as $email) {
                                     if (!empty($email['primary_address'])) {
                                         $emailaddress = $email['email_address'];
                                         break;
                                     }
                                 }
                             }
                             $val = $emailaddress;
                         }
                     } else {
                         $val = '';
                     }
                     $_SESSION['searchDefs'][$this->_merge_module][$this->seed->id][$lsource][$key] = $val;
                 }
                 //foreach
             }
         }
         //if
     }
     //end search form
     parent::process();
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:74,代码来源:view.step1.php


注:本文中的ViewList::process方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。