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