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


PHP plugin_config_get函数代码示例

本文整理汇总了PHP中plugin_config_get函数的典型用法代码示例。如果您正苦于以下问题:PHP plugin_config_get函数的具体用法?PHP plugin_config_get怎么用?PHP plugin_config_get使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: reportBugFormTop

    function reportBugFormTop($p_event, $p_project_id)
    {
        # allow to change reporter_id (if access level is higher than defined)
        $t_user_id = auth_get_current_user_id();
        $t_access_level = user_get_access_level($t_user_id, $p_project_id);
        if ($t_access_level >= plugin_config_get('select_threshold')) {
            ?>
		    
			<tr <?php 
            echo helper_alternate_class();
            ?>
>
				<td class="category" width="30%">
					<?php 
            echo lang_get('reporter');
            ?>
				</td>
				<td width="70%">
					<select <?php 
            echo helper_get_tab_index();
            ?>
 name="reporter_id">
						<?php 
            print_reporter_option_list($t_user_id, $p_project_id);
            ?>
					</select>
				</td>
			</tr>
<?php 
        }
    }
开发者ID:bkraul,项目名称:CustomReporter,代码行数:31,代码来源:CustomReporter.php

示例2: display

 public function display(BugData $p_bug, $p_columns_target)
 {
     plugin_push_current('RelationshipColumnView');
     $p_bug_id = $p_bug->id;
     echo GetRelationshipContent($p_bug_id, plugin_config_get('ShowRelationshipsColorful'), $p_columns_target == COLUMNS_TARGET_VIEW_PAGE, plugin_config_get('ShowRelationships'), plugin_config_get('ShowRelationshipIcons'));
     plugin_pop_current();
 }
开发者ID:QuestorX,项目名称:MantisBT-Plugin.RelationshipColumnView,代码行数:7,代码来源:RelationshipColumn.class.1.3.0.php

示例3: background

 function background()
 {
     if (plugin_config_get('ShowBackgroundImage')) {
         echo '<link rel="stylesheet" href="' . BACKGROUNDIMAGEVIEW_PLUGIN_URL . 'css/BackgroundImageView.css">' . "\n";
     }
     return null;
 }
开发者ID:QuestorX,项目名称:MantisBT-Plugin.BackgroundImageView,代码行数:7,代码来源:BackgroundImageView.php

示例4: export_issues_menu

 /**
  * Export Issues Menu
  * @return array
  */
 function export_issues_menu()
 {
     if (!access_has_project_level(plugin_config_get('export_threshold'))) {
         return array();
     }
     return array('<a href="' . plugin_page('export') . '">' . plugin_lang_get('export') . '</a>');
 }
开发者ID:gtn,项目名称:mantisbt,代码行数:11,代码来源:XmlImportExport.php

示例5: menu

 /**
  * If the whiteboard menu plugin isnt installed, show the storyboard menu instead
  *
  * @return null|string
  */
 function menu()
 {
     if (!plugin_is_installed('WhiteboardMenu') && plugin_config_get('ShowMenu') && $this->getUserHasLevel()) {
         return '<a href="' . plugin_page('storyboard_index') . '">' . plugin_lang_get('menu_title') . '</a>';
     }
     return null;
 }
开发者ID:Cre-ator,项目名称:Whiteboard.StoryBoard-Plugin,代码行数:12,代码来源:StoryBoard.php

示例6: updateDynamicValues

 /**
  * @param $value
  * @param $constant
  */
 public function updateDynamicValues($value, $constant)
 {
     $column_amount = plugin_config_get('CAmount');
     for ($columnIndex = 1; $columnIndex <= $column_amount; $columnIndex++) {
         $act_value = $value . $columnIndex;
         $this->updateValue($act_value, $constant);
     }
 }
开发者ID:Cre-ator,项目名称:Whiteboard.SpecificationManagement-Plugin,代码行数:12,代码来源:specmanagement_config_api.php

示例7: add_lightbox

 function add_lightbox($event)
 {
     $currentUrl = explode('/', $_SERVER['PHP_SELF']);
     if (end($currentUrl) !== 'view.php') {
         return;
     }
     return '        <script type="text/javascript">' . 'var lightbox_display_on_img_preview = ' . plugin_config_get('display_on_img_preview') . ';' . 'var lightbox_display_on_img_link = ' . plugin_config_get('display_on_img_link') . ';' . 'var lightboxlocation = "' . plugin_file('lightbox/js/lightbox-min.js') . '";' . 'var lightboxExtensions = "' . plugin_config_get('img_extensions') . '";' . '</script>' . '<link href="' . plugin_file('lightbox/css/lightbox.css') . '" rel="stylesheet">' . '<script type="text/javascript" src="' . plugin_file('Lightbox.js') . '"></script>';
 }
开发者ID:santoja,项目名称:Lightbox,代码行数:8,代码来源:Lightbox.php

示例8: options

 function options()
 {
     plugin_push_current('CustomerManagement');
     if (access_has_global_level(plugin_config_get('view_customer_fields_threshold'))) {
         $options = array(1 => lang_get('yes'), 2 => lang_get('no'));
     }
     plugin_pop_current();
     return $options;
 }
开发者ID:WilfriedMartin,项目名称:customer-management,代码行数:9,代码来源:IsBillableFilter.php

示例9: loadTheme

 /**
  * Load the theme file
  */
 function loadTheme()
 {
     global $g_css_include_file;
     $themes = getcwd() . "/css/themes/";
     $active_theme = plugin_config_get('active_theme');
     if (file_exists($themes . $active_theme)) {
         $g_css_include_file = "css/themes/" . $active_theme . "/default.css";
     }
 }
开发者ID:saurabh2836,项目名称:mantis-with-multiple-theme,代码行数:12,代码来源:MantisThemeManager.php

示例10: menu_main

 function menu_main()
 {
     $t_links = array();
     if (plugin_config_get('show_gantt_roadmap_link') && access_has_project_level(config_get('view_summary_threshold'))) {
         $t_page = plugin_page('summary_gantt_chart_page', false, 'GanttChart');
         $t_lang = plugin_lang_get('menu', 'GanttChart');
         $t_links[] = "<a href=\"{$t_page}\">{$t_lang}</a>";
     }
     return $t_links;
 }
开发者ID:martijnveen,项目名称:GanttChart,代码行数:10,代码来源:GanttChart.php

示例11: onload

 /**
  * Create the onload script to initialize jQuery Decorate plugin.
  */
 function onload($p_event)
 {
     $selectors = explode(';', plugin_config_get('selectors'));
     $decorators = explode(';', plugin_config_get('decorators'));
     $html = '';
     for ($i = 0; $i < count($selectors); $i++) {
         $html .= '$("' . $selectors[$i] . '").decorate({cssClass: "' . $decorators[$i] . '"});' . "\n";
     }
     return $html;
 }
开发者ID:74Labs,项目名称:mantisbt-jquery-decorate,代码行数:13,代码来源:jQueryDecorate.php

示例12: menu

 function menu()
 {
     require_once __DIR__ . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR . 'userprojectapi.php';
     if (!userprojectapi::checkPluginIsRegisteredInWhiteboardMenu()) {
         userprojectapi::addPluginToWhiteboardMenu();
     }
     if ((!plugin_is_installed('WhiteboardMenu') || !file_exists(config_get_global('plugin_path') . 'WhiteboardMenu')) && plugin_config_get('ShowMenu') && $this->getUserHasLevel()) {
         return '<a href="' . plugin_page('UserProject') . '&sortVal=userName&sort=ASC">' . plugin_lang_get('menu_title') . '</a>';
     }
     return null;
 }
开发者ID:Cre-ator,项目名称:Whiteboard.UserProjectView-Plugin,代码行数:11,代码来源:UserProjectView.php

示例13: prepareHeaders

	/**
	 * L'envoi d'une requête sur un site externe doit être autorisé via les headers http !
	 */
	function prepareHeaders(){
		
		foreach(headers_list() as $header){
			if(strpos($header, "X-Content-Security-Policy:") === 0){
				$header = str_replace("allow 'self';", "allow 'self' ".plugin_config_get('piwikUrl').";",$header);
				header($header);
				break;
			}
			
		}
	}
开发者ID:Jguilbaud,项目名称:mantispluginPiwik,代码行数:14,代码来源:Piwik.php

示例14: options

 function options()
 {
     plugin_push_current('CustomerManagement');
     if (access_has_global_level(plugin_config_get('view_customer_fields_threshold'))) {
         $options = array();
         foreach (CustomerManagementDao::findAllGroups() as $group) {
             $options[$group['id']] = $group['name'];
         }
     }
     plugin_pop_current();
     return $options;
 }
开发者ID:WilfriedMartin,项目名称:customer-management,代码行数:12,代码来源:CustomerGroupFilter.php

示例15: display

 public function display($p_bug, $p_columns_target)
 {
     plugin_push_current('CustomerManagement');
     if (access_has_global_level(plugin_config_get('view_customer_fields_threshold'))) {
         $bugData = CustomerManagementDao::getBugData($p_bug->id);
         if (count($bugData) > 0) {
             $isBillable = CustomerManagementDao::getService($bugData['is_billable']);
             echo string_display_line($isBillable ? lang_get('yes') : lang_get('no'));
         }
     }
     plugin_pop_current();
 }
开发者ID:WilfriedMartin,项目名称:customer-management,代码行数:12,代码来源:IsBillableColumn.php


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