本文整理汇总了PHP中plugin_lang_get函数的典型用法代码示例。如果您正苦于以下问题:PHP plugin_lang_get函数的具体用法?PHP plugin_lang_get怎么用?PHP plugin_lang_get使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了plugin_lang_get函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例2: menu
public function menu($event)
{
$links = array();
$links[] = '<a href="' . plugin_page("board") . '">' . plugin_lang_get("board") . '</a>';
return $links;
}
示例3: __construct
public function __construct()
{
plugin_push_current('CustomerManagement');
$this->title = plugin_lang_get('customer_group');
$this->column = 'customer_group';
plugin_pop_current();
}
示例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;
}
示例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();
}
示例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();
}
示例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>';
}
示例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;
}
示例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;
}
示例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';
}
示例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 = 'frank@bueltge.de';
$this->url = 'https://github.com/bueltge/Chosen-for-MantisBT';
}
示例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 = 'alain.deurveilher@gmail.com';
$this->url = 'https://github.com/mantisbt-plugins/FilterBugList';
}
示例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 = 'kontakt@andrzejkupczyk.pl';
$this->url = 'http://andrzejkupczyk.pl';
}
示例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 = 'acanthis@ya.ru';
$this->url = 'https://github.com/mantisbt-plugins/jabber-notify';
}
示例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 = 'rib.liu@qq.com';
$this->url = 'http://www.mantisbt.org';
}