当前位置: 首页>>代码示例>>PHP>>正文


PHP Helper_Admin::getPluginOptions方法代码示例

本文整理汇总了PHP中Helper_Admin::getPluginOptions方法的典型用法代码示例。如果您正苦于以下问题:PHP Helper_Admin::getPluginOptions方法的具体用法?PHP Helper_Admin::getPluginOptions怎么用?PHP Helper_Admin::getPluginOptions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Helper_Admin的用法示例。


在下文中一共展示了Helper_Admin::getPluginOptions方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: prepareDisplay_Ajax

 function prepareDisplay_Ajax()
 {
     $featured = $this->state->get('skeleton_id', 0);
     // Fields
     $objects = '';
     $pos = isset($this->style->positions[0]->value) ? $this->style->positions[0]->value : 'mainbody';
     $this->fields = Helper_Workshop::getFields('type', $this->item, 'a.folder = ' . (int) $featured, false, false, $pos);
     $this->fieldsAv = Helper_Workshop::getFieldsAv('type', $this->item, $objects, 'a.folder != ' . (int) $featured);
     $this->type_fields = JCckDatabase::loadObjectList('SELECT fieldid, GROUP_CONCAT(DISTINCT typeid separator " c-") AS cc FROM #__cck_core_type_field group by fieldid', 'fieldid');
     // Positions
     $positions = Helper_Workshop::getPositions('type', $this->item);
     if (count($this->style->positions)) {
         $this->positions = array();
         foreach ($this->style->positions as $p) {
             if ($p->value) {
                 $this->positions[$p->value] = new stdClass();
                 $this->positions[$p->value]->title = $p->text;
                 $this->positions[$p->value]->name = $p->value;
                 $this->positions[$p->value]->disable = false;
                 $this->positions[$p->value]->legend = @$positions[$p->value]->legend;
                 $this->positions[$p->value]->variation = @$positions[$p->value]->variation;
                 $this->positions[$p->value]->variation_options = @$positions[$p->value]->variation_options;
                 $this->positions[$p->value]->width = @$positions[$p->value]->width;
                 $this->positions[$p->value]->height = @$positions[$p->value]->height;
             }
         }
     }
     $this->positions_nb = count($this->positions);
     $this->variations = Helper_Workshop::getPositionVariations($this->style->template);
     // Filters
     $max_width = JCck::on() ? '' : ' style="max-width:180px;"';
     $default_f = $this->item->id > 0 ? $this->item->folder : '';
     $options = Helper_Admin::getPluginOptions('field', 'cck_', true, false, true);
     $this->lists['af_t'] = JHtml::_('select.genericlist', $options, 'filter_type', 'class="inputbox filter input-medium" prefix="t-"' . $max_width, 'value', 'text', '', 'filter1');
     $options = Helper_Admin::getAlphaOptions(true);
     $this->lists['af_a'] = JHtml::_('select.genericlist', $options, 'filter_alpha', 'class="inputbox filter input-medium" prefix="a-"', 'value', 'text', '', 'filter3');
     $options = Helper_Admin::getTypeOptions(true, false);
     $this->lists['af_c'] = JHtml::_('select.genericlist', $options, 'filter_type', 'class="inputbox filter input-medium" prefix="c-"' . $max_width, 'value', 'text', '', 'filter4');
     $options = Helper_Admin::getFolderOptions(true, true, false, true, 'field');
     $this->lists['af_f'] = JHtml::_('select.genericlist', $options, 'filter_folder', 'class="inputbox filter input-medium" prefix="f-"' . $max_width, 'value', 'text', $default_f, 'filter2');
 }
开发者ID:codigoaberto,项目名称:SEBLOD,代码行数:41,代码来源:view.raw.php

示例2: prepareDisplay_Ajax

 function prepareDisplay_Ajax()
 {
     // Fields
     if ($this->item->cck_type != '' && !$this->item->skip) {
         $pos = isset($this->style->positions[0]->value) ? $this->style->positions[0]->value : 'mainbody';
         $this->fields = Helper_Workshop::getFields('search', $this->item, 'a.name = "cck"', false, false, $pos);
         $this->fields[$pos][0]->variation = 'hidden';
         $this->fields[$pos][0]->match_mode = 'exact';
         $this->fields[$pos][0]->live_value = $this->item->cck_type;
         $this->fieldsAv = Helper_Workshop::getFieldsAv('search', $this->item, '', 'a.name != "cck"');
     } else {
         $this->fields = Helper_Workshop::getFields('search', $this->item);
         $this->fieldsAv = Helper_Workshop::getFieldsAv('search', $this->item, '');
     }
     $this->type_fields = JCckDatabase::loadObjectList('SELECT fieldid, GROUP_CONCAT(DISTINCT typeid separator " c-") AS cc FROM #__cck_core_type_field group by fieldid', 'fieldid');
     // Positions
     $positions = Helper_Workshop::getPositions('search', $this->item);
     if (is_object($this->style) && count($this->style->positions)) {
         $this->positions = array();
         foreach ($this->style->positions as $p) {
             if ($p->value) {
                 $this->positions[$p->value] = new stdClass();
                 $this->positions[$p->value]->title = $p->text;
                 $this->positions[$p->value]->name = $p->value;
                 $this->positions[$p->value]->disable = false;
                 $this->positions[$p->value]->legend = @$positions[$p->value]->legend;
                 $this->positions[$p->value]->variation = @$positions[$p->value]->variation;
                 $this->positions[$p->value]->variation_options = @$positions[$p->value]->variation_options;
                 $this->positions[$p->value]->width = @$positions[$p->value]->width;
                 $this->positions[$p->value]->height = @$positions[$p->value]->height;
                 $this->positions[$p->value]->css = @$positions[$p->value]->css;
             }
         }
     } else {
         $this->positions = array('mainbody' => (object) array('title' => '(mainbody)', 'name' => 'mainbody', 'disable' => false, 'legend' => '', 'variation' => '', 'variation_options' => '', 'width' => '', 'height' => ''));
     }
     $this->positions_nb = count($this->positions);
     $this->variations = Helper_Workshop::getPositionVariations($this->item->template);
     // Filters
     $max_width = JCck::on() ? '' : ' style="max-width:180px;"';
     $default_f = $this->item->id > 0 ? $this->item->folder : '';
     $options = Helper_Admin::getPluginOptions('field', 'cck_', true, false, true);
     $this->lists['af_t'] = JHtml::_('select.genericlist', $options, 'filter_type', 'class="inputbox filter" size="1" prefix="t-"' . $max_width, 'value', 'text', '', 'filter1');
     $options = Helper_Admin::getAlphaOptions(true);
     $this->lists['af_a'] = JHtml::_('select.genericlist', $options, 'filter_alpha', 'class="inputbox filter" size="1" prefix="a-"', 'value', 'text', '', 'filter3');
     $options = Helper_Admin::getTypeOptions(true, false);
     $this->lists['af_c'] = JHtml::_('select.genericlist', $options, 'filter_type', 'class="inputbox filter" size="1" prefix="c-"' . $max_width, 'value', 'text', '', 'filter4');
     $options = Helper_Admin::getFolderOptions(true, true, false, true, 'field');
     $this->lists['af_f'] = JHtml::_('select.genericlist', $options, 'filter_folder', 'class="inputbox filter" size="1" prefix="f-"' . $max_width, 'value', 'text', $default_f, 'filter2');
 }
开发者ID:pctechnikch,项目名称:SEBLOD,代码行数:50,代码来源:view.raw.php

示例3: getParams

 public static function getParams($element, $master, $client)
 {
     $data = array();
     $data['_'] = array('add' => JText::_('COM_CCK_ADD'), 'configure' => JText::_('COM_CCK_CONFIGURE'), 'edit' => JText::_('COM_CCK_EDIT'), 'optional' => JText::_('COM_CCK_OPTIONAL'), 'required' => JText::_('COM_CCK_REQUIRED'));
     if ($element == 'type') {
         if ($master == 'content') {
             $data['link'] = array_merge(array(JHtml::_('select.option', '', JText::_('COM_CCK_NONE'))), Helper_Admin::getPluginOptions('field_link', 'cck_', false, false, true));
             $data['typo'] = array_merge(array(JHtml::_('select.option', '', JText::_('COM_CCK_NONE'))), Helper_Admin::getPluginOptions('field_typo', 'cck_', false, false, true));
             $data['markup'] = array(JHtml::_('select.option', '', JText::_('COM_CCK_DEFAULT')), JHtml::_('select.option', 'none', JText::_('COM_CCK_NONE')));
             $data['access'] = JCckDatabase::loadObjectList('SELECT a.id AS value, a.title AS text FROM #__viewlevels AS a GROUP BY a.id ORDER BY title ASC');
             $data['restriction'] = array_merge(array(JHtml::_('select.option', '', JText::_('COM_CCK_NONE'))), Helper_Admin::getPluginOptions('field_restriction', 'cck_', false, false, true));
         } else {
             $data['client'] = $client;
             $data['variation'] = array(JHtml::_('select.option', 'hidden', JText::_('COM_CCK_HIDDEN')), JHtml::_('select.option', 'value', JText::_('COM_CCK_VALUE')), JHtml::_('select.option', '<OPTGROUP>', JText::_('COM_CCK_FORM')), JHtml::_('select.option', '', JText::_('COM_CCK_DEFAULT')), JHtml::_('select.option', 'disabled', JText::_('COM_CCK_FORM_DISABLED')), JHtml::_('select.option', '</OPTGROUP>', ''));
             $data['live'] = array_merge(array(JHtml::_('select.option', '', JText::_('COM_CCK_DEFAULT'))), Helper_Admin::getPluginOptions('field_live', 'cck_', false, false, true));
             $data['stage'] = array(JHtml::_('select.option', 0, JText::_('COM_CCK_STAGE_FINAL')), JHtml::_('select.option', '<OPTGROUP>', JText::_('COM_CCK_STAGE_TEMP')), JHtml::_('select.option', 1, JText::_('COM_CCK_STAGE_1ST')), JHtml::_('select.option', 2, JText::_('COM_CCK_STAGE_2ND')), JHtml::_('select.option', 3, JText::_('COM_CCK_STAGE_3RD')), JHtml::_('select.option', 4, JText::_('COM_CCK_STAGE_4TH')), JHtml::_('select.option', 5, JText::_('COM_CCK_STAGE_5TH')), JHtml::_('select.option', '</OPTGROUP>', ''));
             $data['markup'] = array(JHtml::_('select.option', '', JText::_('COM_CCK_DEFAULT')), JHtml::_('select.option', 'none', JText::_('COM_CCK_NONE')));
             $data['access'] = JCckDatabase::loadObjectList('SELECT a.id AS value, a.title AS text FROM #__viewlevels AS a GROUP BY a.id ORDER BY title ASC');
             $data['validation'] = true;
             $data['restriction'] = array_merge(array(JHtml::_('select.option', '', JText::_('COM_CCK_NONE'))), Helper_Admin::getPluginOptions('field_restriction', 'cck_', false, false, true));
         }
     } else {
         if ($master == 'order') {
             $data['match_mode'] = array(JHtml::_('select.option', 'ASC', JText::_('COM_CCK_ASCENDING')), JHtml::_('select.option', 'DESC', JText::_('COM_CCK_DESCENDING')), JHtml::_('select.option', '<OPTGROUP>', JText::_('COM_CCK_CUSTOM')), JHtml::_('select.option', 'FIELD', JText::_('COM_CCK_VALUES')), JHtml::_('select.option', '</OPTGROUP>', ''));
         } elseif ($master == 'content') {
             $data['link'] = array_merge(array(JHtml::_('select.option', '', JText::_('COM_CCK_NONE'))), Helper_Admin::getPluginOptions('field_link', 'cck_', false, false, true));
             $data['typo'] = array_merge(array(JHtml::_('select.option', '', JText::_('COM_CCK_NONE'))), Helper_Admin::getPluginOptions('field_typo', 'cck_', false, false, true));
             $data['markup'] = array(JHtml::_('select.option', '', JText::_('COM_CCK_DEFAULT')), JHtml::_('select.option', 'none', JText::_('COM_CCK_NONE')));
             $data['access'] = JCckDatabase::loadObjectList('SELECT a.id AS value, a.title AS text FROM #__viewlevels AS a GROUP BY a.id ORDER BY title ASC');
             $data['restriction'] = array_merge(array(JHtml::_('select.option', '', JText::_('COM_CCK_NONE'))), Helper_Admin::getPluginOptions('field_restriction', 'cck_', false, false, true));
         } else {
             $data['client'] = $client;
             $data['variation'] = array(JHtml::_('select.option', 'hidden', JText::_('COM_CCK_HIDDEN')), JHtml::_('select.option', 'value', JText::_('COM_CCK_VALUE')), JHtml::_('select.option', '<OPTGROUP>', JText::_('COM_CCK_FORM')), JHtml::_('select.option', '', JText::_('COM_CCK_DEFAULT')), JHtml::_('select.option', 'form_filter', JText::_('COM_CCK_FORM_FILTER')), JHtml::_('select.option', 'disabled', JText::_('COM_CCK_FORM_DISABLED')), JHtml::_('select.option', '</OPTGROUP>', ''));
             $data['match_mode'] = array(JHtml::_('select.option', 'none', JText::_('COM_CCK_NONE')), JHtml::_('select.option', '<OPTGROUP>', JText::_('COM_CCK_MATCH_GROUP_BASIC')), JHtml::_('select.option', 'alpha', JText::_('COM_CCK_MATCH_BEGINNING_WITH')), JHtml::_('select.option', 'empty', JText::_('COM_CCK_MATCH_EMPTY')), JHtml::_('select.option', 'zeta', JText::_('COM_CCK_MATCH_ENDING_WITH')), JHtml::_('select.option', 'exact', JText::_('COM_CCK_MATCH_EXACT_PHRASE')), JHtml::_('select.option', '', JText::_('COM_CCK_MATCH_DEFAULT_PHRASE')), JHtml::_('select.option', '</OPTGROUP>', ''), JHtml::_('select.option', '<OPTGROUP>', JText::_('COM_CCK_MATCH_GROUP_DATE_AND_TIME')), JHtml::_('select.option', 'date_past_only', JText::_('COM_CCK_MATCH_DATE_PAST_ONLY')), JHtml::_('select.option', 'date_past', JText::_('COM_CCK_MATCH_DATE_PAST')), JHtml::_('select.option', 'date_future', JText::_('COM_CCK_MATCH_DATE_FUTURE')), JHtml::_('select.option', 'date_future_only', JText::_('COM_CCK_MATCH_DATE_FUTURE_ONLY')), JHtml::_('select.option', '</OPTGROUP>', ''), JHtml::_('select.option', '<OPTGROUP>', JText::_('COM_CCK_MATCH_GROUP_EXCLUSION')), JHtml::_('select.option', 'not_alpha', JText::_('COM_CCK_MATCH_NOT_BEGINNING_WITH')), JHtml::_('select.option', 'not_empty', JText::_('COM_CCK_MATCH_NOT_EMPTY')), JHtml::_('select.option', 'not_zeta', JText::_('COM_CCK_MATCH_NOT_ENDING_WITH')), JHtml::_('select.option', 'not_equal', JText::_('COM_CCK_MATCH_NOT_EQUAL')), JHtml::_('select.option', 'not_null', JText::_('COM_CCK_MATCH_NOT_NULL')), JHtml::_('select.option', 'not_any_exact', JText::_('COM_CCK_MATCH_NOT_ANY_WORDS_EXACT')), JHtml::_('select.option', 'not_like', JText::_('COM_CCK_MATCH_NOT_LIKE')), JHtml::_('select.option', '</OPTGROUP>', ''), JHtml::_('select.option', '<OPTGROUP>', JText::_('COM_CCK_MATCH_GROUP_GEO_DISTANCE')), JHtml::_('select.option', 'radius_higher', JText::_('COM_CCK_MATCH_RADIUS_HIGHER')), JHtml::_('select.option', 'radius_lower', JText::_('COM_CCK_MATCH_RADIUS_LOWER')), JHtml::_('select.option', '</OPTGROUP>', ''), JHtml::_('select.option', '<OPTGROUP>', JText::_('COM_CCK_MATCH_GROUP_NULL')), JHtml::_('select.option', 'is_null', JText::_('COM_CCK_MATCH_IS_NULL')), JHtml::_('select.option', 'is_not_null', JText::_('COM_CCK_MATCH_IS_NOT_NULL')), JHtml::_('select.option', '</OPTGROUP>', ''), JHtml::_('select.option', '<OPTGROUP>', JText::_('COM_CCK_MATCH_GROUP_NUMERIC')), JHtml::_('select.option', 'num_higher_only', JText::_('COM_CCK_MATCH_NUMERIC_HIGHER_ONLY')), JHtml::_('select.option', 'num_higher', JText::_('COM_CCK_MATCH_NUMERIC_HIGHER')), JHtml::_('select.option', 'num_lower', JText::_('COM_CCK_MATCH_NUMERIC_LOWER')), JHtml::_('select.option', 'num_lower_only', JText::_('COM_CCK_MATCH_NUMERIC_LOWER_ONLY')), JHtml::_('select.option', '</OPTGROUP>', ''), JHtml::_('select.option', '<OPTGROUP>', JText::_('COM_CCK_MATCH_GROUP_WORDS')), JHtml::_('select.option', 'any', JText::_('COM_CCK_MATCH_ANY_WORDS')), JHtml::_('select.option', 'any_exact', JText::_('COM_CCK_MATCH_ANY_WORDS_EXACT')), JHtml::_('select.option', 'each', JText::_('COM_CCK_MATCH_EACH_WORD')), JHtml::_('select.option', 'each_exact', JText::_('COM_CCK_MATCH_EACH_WORD_EXACT')), JHtml::_('select.option', 'nested_exact', JText::_('COM_CCK_MATCH_NESTED_EXACT')), JHtml::_('select.option', '</OPTGROUP>', ''));
             $data['live'] = array_merge(array(JHtml::_('select.option', '', JText::_('COM_CCK_DEFAULT')), JHtml::_('select.option', 'stage', JText::_('COM_CCK_STAGE'))), Helper_Admin::getPluginOptions('field_live', 'cck_', false, false, true));
             $data['stage'] = array(JHtml::_('select.option', 0, JText::_('COM_CCK_STAGE_FINAL')), JHtml::_('select.option', '<OPTGROUP>', JText::_('COM_CCK_STAGE_TEMP')), JHtml::_('select.option', 1, JText::_('COM_CCK_STAGE_1ST')), JHtml::_('select.option', 2, JText::_('COM_CCK_STAGE_2ND')), JHtml::_('select.option', 3, JText::_('COM_CCK_STAGE_3RD')), JHtml::_('select.option', 4, JText::_('COM_CCK_STAGE_4TH')), JHtml::_('select.option', 5, JText::_('COM_CCK_STAGE_5TH')), JHtml::_('select.option', '</OPTGROUP>', ''));
             $data['markup'] = array(JHtml::_('select.option', '', JText::_('COM_CCK_DEFAULT')), JHtml::_('select.option', 'none', JText::_('COM_CCK_NONE')));
             $data['access'] = JCckDatabase::loadObjectList('SELECT a.id AS value, a.title AS text FROM #__viewlevels AS a GROUP BY a.id ORDER BY title ASC');
             $data['validation'] = true;
             $data['restriction'] = array_merge(array(JHtml::_('select.option', '', JText::_('COM_CCK_NONE'))), Helper_Admin::getPluginOptions('field_restriction', 'cck_', false, false, true));
         }
     }
     return $data;
 }
开发者ID:pierre-H,项目名称:SEBLOD,代码行数:44,代码来源:helper_workshop.php

示例4: array

        <?php 
echo JCckDev::renderForm('core_dev_select', '', $config, array('label' => 'Required', 'selectlabel' => '', 'options' => 'No=||Yes=required||Yes GroupRequired=grouprequired', 'storage_field' => 'required'));
echo JCckDev::renderForm('core_dev_text', '', $config, array('label' => 'Alert', 'storage_field' => 'required_alert'));
echo JCckDev::renderBlank('<input type="hidden" id="blank_li" value="" />');
echo JCckDev::renderForm('core_dev_text', '', $config, array('label' => 'Group', 'required' => 'required', 'storage_field' => 'required2'));
?>
    </ul>
</div>
<div class="seblod">
	<?php 
echo JCckDev::renderLegend(JText::_('COM_CCK_VALIDATION'));
?>
    <div id="loading" class="loading"></div>
    <ul class="adminformlist adminformlist-2cols">
        <?php 
$options = Helper_Admin::getPluginOptions('field_validation', 'cck_', false, true, true, array('required'));
$validation = JHtml::_('select.genericlist', $options, 'validation', 'class="inputbox select" style="max-width:175px;"', 'value', 'text', $name, 'validation');
?>
        <li><label><?php 
echo JText::_('COM_CCK_VALIDATION');
?>
</label><?php 
echo $validation;
?>
</li>
        <?php 
echo JCckDev::renderForm('core_validation_alert', '', $config);
?>
    </ul>
    <ul id="layer" class="adminformlist adminformlist-2cols">
		<?php 
开发者ID:hamby,项目名称:SEBLOD,代码行数:31,代码来源:validation.php


注:本文中的Helper_Admin::getPluginOptions方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。