本文整理汇总了PHP中JUDownloadHelper::getPluginOptions方法的典型用法代码示例。如果您正苦于以下问题:PHP JUDownloadHelper::getPluginOptions方法的具体用法?PHP JUDownloadHelper::getPluginOptions怎么用?PHP JUDownloadHelper::getPluginOptions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JUDownloadHelper
的用法示例。
在下文中一共展示了JUDownloadHelper::getPluginOptions方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getOptions
protected function getOptions()
{
$options = array();
foreach ($this->element->children() as $option) {
if ($option->getName() != 'option') {
continue;
}
$tmp = JHtml::_('select.option', (string) $option['value'], JText::alt(trim((string) $option), preg_replace('/[^a-zA-Z0-9_\\-]/', '_', $this->fieldname)), 'value', 'text', (string) $option['disabled'] == 'true');
$tmp->class = (string) $option['class'];
$tmp->onclick = (string) $option['onclick'];
$options[] = $tmp;
}
$plugintype = $this->element['plugintype'];
$_options = JUDownloadHelper::getPluginOptions($plugintype, 0);
reset($options);
if ($_options) {
$options = array_merge($options, $_options);
}
return $options;
}
示例2: array_unshift
?>
</button>
</div>
<div class="filter-select">
<?php
$options = JUDownloadHelper::getFieldGroupOptions(false, false);
array_unshift($options, array('value' => '', 'text' => JText::_('COM_JUDOWNLOAD_ALL_GROUPS')));
?>
<div class="pull-right hidden-phone">
<?php
echo JHtml::_('select.genericlist', $options, 'filter_group', 'onchange="Joomla.submitform();" class="input-medium"', 'value', 'text', $this->escape($this->state->get('filter.group_id', '')), "filter_group");
?>
</div>
<?php
$options = JUDownloadHelper::getPluginOptions('field', 0);
array_unshift($options, array('value' => '', 'text' => JText::_('COM_JUDOWNLOAD_SELECT_FIELD_TYPE')));
?>
<div class="pull-right hidden-phone">
<?php
echo JHtml::_('select.genericlist', $options, 'filter_plugin', 'onchange="Joomla.submitform();" class="input-medium"', 'value', 'text', $this->escape($this->state->get('filter.plugin_id', '')), "filter_plugin");
?>
</div>
<div class="pull-right hidden-phone">
<label for="directionTable" class="element-invisible"><?php
echo JText::_('JFIELD_ORDERING_DESC');
?>
</label>
<select name="directionTable" id="directionTable"
class="input-medium" onchange="Joomla.orderTable()">
<option value=""><?php