本文整理汇总了PHP中thebuggenie\core\framework\Settings::getSyntaxValue方法的典型用法代码示例。如果您正苦于以下问题:PHP Settings::getSyntaxValue方法的具体用法?PHP Settings::getSyntaxValue怎么用?PHP Settings::getSyntaxValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类thebuggenie\core\framework\Settings
的用法示例。
在下文中一共展示了Settings::getSyntaxValue方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setReproductionStepsSyntax
/**
* Set the reproduction steps syntax
*
* @param integer $syntax
*/
public function setReproductionStepsSyntax($syntax)
{
if (!is_numeric($syntax)) {
$syntax = \thebuggenie\core\framework\Settings::getSyntaxValue($syntax);
}
$this->_addChangedProperty('_reproduction_steps_syntax', $syntax);
}
示例2: setContentSyntax
public function setContentSyntax($syntax)
{
if (!is_numeric($syntax)) {
$syntax = framework\Settings::getSyntaxValue($syntax);
}
$this->_content_syntax = $syntax;
}
示例3: isset
$base_id = isset($area_id) ? $area_id : $area_name;
$mentionable = isset($target_type) && isset($target_id);
?>
<div class="textarea_container syntax_<?php
echo $syntax;
?>
">
<div class="syntax_picker_container">
<input type="hidden" id="<?php
echo $base_id;
?>
_syntax" name="<?php
echo $area_name;
?>
_syntax" value="<?php
echo \thebuggenie\core\framework\Settings::getSyntaxValue($syntax);
?>
">
<a id="<?php
echo $base_id;
?>
_toggle_syntax_button" class="button button-silver syntax_picker dropper"><?php
echo __('Selected syntax: %selected_syntax', array('%selected_syntax' => '<span id="' . $base_id . '_selected_syntax">' . $syntaxname . '</span>'));
?>
<span style="font-size: 0.8em; float: right;">▼</span></a>
<ul id="<?php
echo $base_id;
?>
_syntax_picker" class="simple_list rounded_box white shadowed more_actions_dropdown popup_box" onclick="$(this).previous().toggleClassName('button-pressed');TBG.Main.Profile.clearPopupsAndButtons();" style="display: none;">
<li class="mw <?php
if ($syntax == 'mw') {