本文整理汇总了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();
}
示例2: process
function process()
{
parent::process();
}
示例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();
}