當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。