本文整理汇总了PHP中plugin_lang_get函数的典型用法代码示例。如果您正苦于以下问题:PHP plugin_lang_get函数的具体用法?PHP plugin_lang_get怎么用?PHP plugin_lang_get使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了plugin_lang_get函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: 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
示例2: menu
public function menu($event)
{
$links = array();
$links[] = '<a href="' . plugin_page("board") . '">' . plugin_lang_get("board") . '</a>';
return $links;
}
开发者ID:rombert,项目名称:scrum,代码行数:7,代码来源:Scrum.php
示例3: __construct
public function __construct()
{
plugin_push_current('CustomerManagement');
$this->title = plugin_lang_get('customer_group');
$this->column = 'customer_group';
plugin_pop_current();
}
开发者ID:WilfriedMartin,项目名称:customer-management,代码行数:7,代码来源:CustomerGroupColumn.php
示例4: agileMantisStatusColorsAndNames
function agileMantisStatusColorsAndNames($task_status)
{
switch ($task_status) {
default:
case '1':
$status['name'] = plugin_lang_get('status_new');
$status['color'] = '#FCBDBD';
break;
case '2':
$status['name'] = plugin_lang_get('status_assigned');
$status['color'] = '#C2DFFF';
break;
case '3':
$status['name'] = plugin_lang_get('status_confirmed');
$status['color'] = '#FFF494';
break;
case '4':
$status['name'] = plugin_lang_get('status_resolved');
$status['color'] = '#D2F5B0';
break;
case '5':
$status['name'] = plugin_lang_get('status_closed');
$status['color'] = '#c9ccc4';
break;
}
return $status;
}
开发者ID:CarlosPinedaT,项目名称:agileMantis,代码行数:27,代码来源:class_agile_mantis_style.php
示例5: __construct
public function __construct()
{
plugin_push_current('CustomerManagement');
$this->title = plugin_lang_get('invoice');
$this->field = 'invoice';
$this->type = FILTER_TYPE_STRING;
plugin_pop_current();
}
开发者ID:WilfriedMartin,项目名称:customer-management,代码行数:8,代码来源:InvoiceFilter.php
示例6: __construct
public function __construct()
{
plugin_push_current('CustomerManagement');
$this->title = plugin_lang_get('customer_group');
$this->field = 'customer';
$this->type = FILTER_TYPE_MULTI_INT;
plugin_pop_current();
}
开发者ID:WilfriedMartin,项目名称:customer-management,代码行数:8,代码来源:CustomerGroupFilter.php
示例7: account_update_form
/**
* When updating user preferences, allowing the user or admin to specify
* a version control username to be associated with the account.
* @param string Event name
* @param int User ID
*/
function account_update_form($p_event, $p_user_id)
{
if (!access_has_global_level(config_get('plugin_Source_username_threshold'))) {
return;
}
$t_user = SourceUser::load($p_user_id);
echo '<tr ', helper_alternate_class(), '><td class="category">', plugin_lang_get('vcs_username', 'Source'), '<input type="hidden" name="Source_vcs" value="1"/></td><td>', '<input name="Source_vcs_username" value="', $t_user->username, '"/></td></tr>';
}
开发者ID:hcw70,项目名称:source-integration,代码行数:14,代码来源:SourceIntegration.php
示例8: lang_get_failsave_custom_field
function lang_get_failsave_custom_field($p_custom_field_name)
{
if (lang_exists($p_custom_field_name, lang_get_current())) {
$t_str = lang_get($p_custom_field_name);
} else {
$t_str = plugin_lang_get($p_custom_field_name);
}
return $t_str;
}
开发者ID:CarlosPinedaT,项目名称:agileMantis,代码行数:9,代码来源:config.php
示例9: install
function install() {
$result = extension_loaded("xmlreader") && extension_loaded("xmlwriter");
if ( ! $result ) {
#\todo returning false should trigger some error reporting, needs rethinking error_api
error_parameters( plugin_lang_get( 'error_no_xml' ) );
trigger_error( ERROR_PLUGIN_INSTALL_FAILED, ERROR );
}
return $result;
}
开发者ID:rombert,项目名称:mantisbt,代码行数:9,代码来源:XmlImportExport.php
示例10: register
function register()
{
$this->name = plugin_lang_get('plugin_title');
$this->description = plugin_lang_get('plugin_description');
$this->page = 'config.php';
$this->version = '0.1.4';
$this->requires = array('MantisCore' => '1.3.0');
$this->author = 'Hennes Hervé';
$this->url = 'http://www.h-hennes.fr';
}
开发者ID:nenes25,项目名称:mantisbt_autochangestatus,代码行数:10,代码来源:AutoChangeStatus.php
示例11: register
/**
* A method that populates the plugin information and minimum requirements.
*
* @return void
*/
public function register()
{
$this->name = plugin_lang_get('title');
$this->description = plugin_lang_get('description');
$this->version = '1.1.1';
$this->requires = array('MantisCore' => '1.2.0, 1.3.0');
$this->author = 'Frank Bültge';
$this->contact = '[email protected]';
$this->url = 'https://github.com/bueltge/Chosen-for-MantisBT';
}
开发者ID:bueltge,项目名称:Chosen-for-MantisBT,代码行数:15,代码来源:chosen.php
示例12: register
/**
* A method that populates the plugin information and minimum requirements.
*/
function register()
{
$this->name = plugin_lang_get('title');
$this->description = plugin_lang_get('description');
$this->version = '1.0.0';
$this->requires = array('MantisCore' => '1.2.0');
$this->author = 'Alain D\'EURVEILHER';
$this->contact = '[email protected]';
$this->url = 'https://github.com/mantisbt-plugins/FilterBugList';
}
开发者ID:fg-ok,项目名称:codev,代码行数:13,代码来源:FilterBugList.php
示例13: register
public function register()
{
$this->name = plugin_lang_get('name');
$this->description = plugin_lang_get('description');
$this->page = 'config_page';
$this->version = self::VERSION;
$this->requires = ['MantisCore' => '1.2.0'];
$this->author = 'Andrzej Kupczyk';
$this->contact = '[email protected]';
$this->url = 'http://andrzejkupczyk.pl';
}
开发者ID:andrzejkupczyk,项目名称:mantisbt-todolists,代码行数:11,代码来源:ToDoLists.php
示例14: register
function register()
{
$this->name = plugin_lang_get('title');
$this->description = plugin_lang_get('description');
$this->page = 'config_main';
$this->version = '1.0';
$this->requires = array('MantisCore' => '1.2.0');
$this->author = 'AcanthiS';
$this->contact = '[email protected]';
$this->url = 'https://github.com/mantisbt-plugins/jabber-notify';
}
开发者ID:JeromyK,项目名称:jabber-notify,代码行数:11,代码来源:JabberNotifierSystem.php
示例15: register
/**
* A method that populates the plugin information and minimum requirements.
*/
function register()
{
$this->name = plugin_lang_get('title');
$this->description = plugin_lang_get('description');
$this->page = '';
$this->version = '2.0';
$this->requires = array('MantisCore' => '1.2.0', 'jQuery' => '1.8.2');
$this->author = 'Sam';
$this->contact = '[email protected]';
$this->url = 'http://www.mantisbt.org';
}
开发者ID:since2014,项目名称:MantisAcra,代码行数:14,代码来源:MantisAcra.php
示例16: display_strategies
function display_strategies($p_type = null)
{
if (is_null($p_type)) {
echo '<option value="0">', plugin_lang_get('select_one'), '</option>';
}
echo '<option value="', SOURCE_EXPLICIT, '"', $p_type == SOURCE_EXPLICIT ? ' selected="selected"' : '', '>', plugin_lang_get('mapping_explicit'), '</option>';
if (!Source_PVM()) {
echo '<option value="', SOURCE_NEAR, '"', $p_type == SOURCE_NEAR ? ' selected="selected"' : '', '>', plugin_lang_get('mapping_near'), '</option>', '<option value="', SOURCE_FAR, '"', $p_type == SOURCE_FAR ? ' selected="selected"' : '', '>', plugin_lang_get('mapping_far'), '</option>';
echo '<option value="', SOURCE_FIRST, '"', $p_type == SOURCE_FIRST ? ' selected="selected"' : '', '>', plugin_lang_get('mapping_first'), '</option>', '<option value="', SOURCE_LAST, '"', $p_type == SOURCE_LAST ? ' selected="selected"' : '', '>', plugin_lang_get('mapping_last'), '</option>';
}
}
开发者ID:01-Scripts,项目名称:source-integration,代码行数:11,代码来源:repo_manage_page.php
示例17: display
public function display($p_bug, $p_columns_target)
{
plugin_push_current('Timecard');
$p_bug_id = $p_bug->id;
$t_bug = TimecardBug::load($p_bug_id, true);
$t_bug->calculate();
if ($t_bug->estimate >= 0) {
echo $t_bug->estimate, plugin_lang_get('hours');
}
plugin_pop_current();
}
开发者ID:rahmanjis,项目名称:dipstart-development,代码行数:11,代码来源:TimecardEstimateColumn.class.php
示例18: register
/**
* A method that populates the plugin information and minimum requirements.
* @return void
*/
function register()
{
$this->name = plugin_lang_get('title');
$this->description = plugin_lang_get('description');
$this->page = 'config_page';
$this->version = '1.0.0';
$this->requires = array('MantisCore' => '1.3.0');
$this->author = 'Victor Boctor';
$this->contact = '[email protected]';
$this->url = 'http://www.mantishub.com';
}
开发者ID:mantishub,项目名称:MantisSeeder,代码行数:15,代码来源:MantisSeeder.php
示例19: 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
示例20: register
/**
* A method that populates the plugin information and minimum requirements.
*/
function register() {
$this->name = 'Piwik';
$this->description = plugin_lang_get( 'description' );
$this->version = '1.0';
$this->requires = array(
'MantisCore' => '1.2.0',
);
$this->page = 'config';
$this->author = 'Johan Guilbaud';
$this->contact = '[email protected]';
$this->url = 'http://www.lapinkiller.fr';
}
开发者ID:Jguilbaud,项目名称:mantispluginPiwik,代码行数:15,代码来源:Piwik.php
注:本文中的plugin_lang_get函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论