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


PHP ExternalAPIFactory::getModuleDropDown方法代码示例

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


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

示例1: getDocumentsExternalApiDropDown

function getDocumentsExternalApiDropDown($focus = null, $name = null, $value = null, $view = null)
{
    require_once 'include/externalAPI/ExternalAPIFactory.php';
    $apiList = ExternalAPIFactory::getModuleDropDown('Documents');
    $apiList = array_merge(array('Sugar' => $GLOBALS['app_list_strings']['eapm_list']['Sugar']), $apiList);
    if (!empty($value) && empty($apiList[$value])) {
        $apiList[$value] = $value;
    }
    return $apiList;
}
开发者ID:NALSS,项目名称:SuiteCRM,代码行数:10,代码来源:DocumentExternalApiDropDown.php

示例2: SugarFeedDashlet

 function SugarFeedDashlet($id, $def = null)
 {
     global $current_user, $app_strings, $app_list_strings;
     require 'modules/SugarFeed/metadata/dashletviewdefs.php';
     $this->myItemsOnly = false;
     parent::DashletGeneric($id, $def);
     $this->myItemsOnly = false;
     $this->isConfigurable = true;
     $this->hasScript = true;
     $pattern = array();
     $pattern[] = "/-/";
     $pattern[] = "/[0-9]/";
     $replacements = array();
     $replacements[] = '';
     $replacements[] = '';
     $this->idjs = preg_replace($pattern, $replacements, $this->id);
     // Add in some default categories.
     $this->categories['ALL'] = translate('LBL_ALL', 'SugarFeed');
     // Need to get the rest of the active SugarFeed modules
     $module_list = SugarFeed::getActiveFeedModules();
     // Translate the category names
     if (!is_array($module_list)) {
         $module_list = array();
     }
     foreach ($module_list as $module) {
         if ($module == 'UserFeed') {
             // Fake module, need to translate specially
             $this->categories[$module] = translate('LBL_USER_FEED', 'SugarFeed');
         } else {
             $this->categories[$module] = $app_list_strings['moduleList'][$module];
         }
     }
     // Need to add the external api's here
     $this->externalAPIList = ExternalAPIFactory::getModuleDropDown('SugarFeed', true);
     if (!is_array($this->externalAPIList)) {
         $this->externalAPIList = array();
     }
     foreach ($this->externalAPIList as $apiObj => $apiName) {
         $this->categories[$apiObj] = $apiName;
     }
     if (empty($def['title'])) {
         $this->title = translate('LBL_HOMEPAGE_TITLE', 'SugarFeed');
     }
     if (!empty($def['rows'])) {
         $this->displayRows = $def['rows'];
     }
     if (!empty($def['categories'])) {
         $this->selectedCategories = $def['categories'];
     }
     if (!empty($def['userfeed_created'])) {
         $this->userfeed_created = $def['userfeed_created'];
     }
     $this->searchFields = $dashletData['SugarFeedDashlet']['searchFields'];
     $this->columns = $dashletData['SugarFeedDashlet']['columns'];
     $catCount = count($this->categories);
     ACLController::filterModuleList($this->categories, false);
     if (count($this->categories) < $catCount) {
         if (!empty($this->selectedCategories)) {
             ACLController::filterModuleList($this->selectedCategories, true);
         } else {
             $this->selectedCategories = array_keys($this->categories);
             unset($this->selectedCategories[0]);
         }
     }
     $this->seedBean = new SugarFeed();
 }
开发者ID:netconstructor,项目名称:sugarcrm_dev,代码行数:66,代码来源:SugarFeedDashlet.php

示例3: getAuthenticatedImportableExternalEAPMs

 private function getAuthenticatedImportableExternalEAPMs()
 {
     return ExternalAPIFactory::getModuleDropDown('Import', FALSE, FALSE);
 }
开发者ID:isrealconsulting,项目名称:ic-suite,代码行数:4,代码来源:view.step1.php

示例4: getMeetingsExternalApiDropDown

function getMeetingsExternalApiDropDown($focus = null, $name = null, $value = null, $view = null)
{
    global $dictionary, $app_list_strings;
    $cacheKeyName = 'meetings_type_drop_down';
    $apiList = sugar_cache_retrieve($cacheKeyName);
    if ($apiList === null) {
        require_once 'include/externalAPI/ExternalAPIFactory.php';
        $apiList = ExternalAPIFactory::getModuleDropDown('Meetings');
        $apiList = array_merge(array('Sugar' => $GLOBALS['app_list_strings']['eapm_list']['Sugar']), $apiList);
        sugar_cache_put($cacheKeyName, $apiList);
    }
    if (!empty($value) && empty($apiList[$value])) {
        $apiList[$value] = $value;
    }
    //bug 46294: adding list of options to dropdown list (if it is not the default list)
    if ($dictionary['Meeting']['fields']['type']['options'] != "eapm_list") {
        $apiList = array_merge(getMeetingTypeOptions($dictionary, $app_list_strings), $apiList);
    }
    return $apiList;
}
开发者ID:jgera,项目名称:sugarcrm_dev,代码行数:20,代码来源:Meeting.php

示例5: getEAPMExternalApiDropDown

function getEAPMExternalApiDropDown()
{
    $apiList = ExternalAPIFactory::getModuleDropDown('', true, true);
    return $apiList;
}
开发者ID:BMLP,项目名称:memoryhole-ansible,代码行数:5,代码来源:EAPM.php

示例6: getMeetingsExternalApiDropDown

function getMeetingsExternalApiDropDown($focus = null, $name = null, $value = null, $view = null)
{
    global $dictionary, $app_list_strings;
    $cacheKeyName = 'meetings_type_drop_down';
    $apiList = sugar_cache_retrieve($cacheKeyName);
    if ($apiList === null) {
        require_once 'include/externalAPI/ExternalAPIFactory.php';
        $apiList = ExternalAPIFactory::getModuleDropDown('Meetings');
        $apiList = array_merge(array('Sugar' => $app_list_strings['eapm_list']['Sugar']), $apiList);
        sugar_cache_put($cacheKeyName, $apiList);
    }
    if (!empty($value) && empty($apiList[$value])) {
        $apiList[$value] = $value;
    }
    // if options list name is defined in vardef and is a different list than eapm_list then use that list
    $typeField = $dictionary['Meeting']['fields']['type'];
    if (isset($typeField['options']) && $typeField['options'] != "eapm_list") {
        $apiList = array_merge(getMeetingTypeOptions($dictionary, $app_list_strings), $apiList);
    }
    return $apiList;
}
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:21,代码来源:Meeting.php

示例7: getImportableExternalEAPMs

 private function getImportableExternalEAPMs()
 {
     require_once 'include/externalAPI/ExternalAPIFactory.php';
     return ExternalAPIFactory::getModuleDropDown('Import', FALSE, FALSE, 'eapm_import_list');
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:5,代码来源:view.extstep1.php


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