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


PHP SEFTools::getInstalledComponents方法代码示例

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


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

示例1: getLists

 function getLists()
 {
     // make the select list for the component filter
     $comList[] = JHTML::_('select.option', '', JText::_('COM_SEF_ALL'));
     $rows = SEFTools::getInstalledComponents();
     foreach (array_keys($rows) as $i) {
         $row =& $rows[$i];
         $comList[] = JHTML::_('select.option', $row->option, $row->name);
     }
     $lists['comList'] = JHTML::_('select.genericlist', $comList, 'comFilter', "class=\"inputbox\" onchange=\"document.adminForm.submit();\" size=\"1\"", 'value', 'text', $this->filterComponent);
     // make the filter text boxes
     $lists['filterSEF'] = "<input class=\"hasTip\" type=\"text\" name=\"filterSEF\" value=\"{$this->filterSEF}\" size=\"40\" maxlength=\"255\" onkeydown=\"return handleKeyDown(event);\" title=\"" . JText::_('COM_SEF_TT_FILTER_SEF') . "\" />";
     $lists['filterReal'] = "<input class=\"hasTip\" type=\"text\" name=\"filterReal\" value=\"{$this->filterReal}\" size=\"40\" maxlength=\"255\" onkeydown=\"return handleKeyDown(event);\" title=\"" . JText::_('COM_SEF_TT_FILTER_REAL') . "\" />";
     $lists['filterSEFRE'] = JText::_('COM_SEF_USE_RE') . '&nbsp;<input type="checkbox" style="float:none" ' . (substr($this->filterSEF, 0, 4) == 'reg:' ? 'checked="checked"' : '') . ' onclick="useRE(this, document.adminForm.filterSEF);" />';
     $lists['filterRealRE'] = JText::_('COM_SEF_USE_RE') . '&nbsp;<input type="checkbox" style="float:none" ' . (substr($this->filterReal, 0, 4) == 'reg:' ? 'checked="checked"' : '') . ' onclick="useRE(this, document.adminForm.filterReal);" />';
     // Filter meta tags
     $metas[] = JHTML::_('select.option', 0, JText::_('COM_SEF_ALL'));
     $metas[] = JHTML::_('select.option', 1, JText::_('COM_SEF_EMPTY'));
     $metas[] = JHTML::_('select.option', 2, JText::_('COM_SEF_FILLED'));
     $lists['filterTitle'] = JHTML::_('select.genericlist', $metas, 'filterTitle', 'class="inputbox" onchange="document.adminForm.submit();" style="width: 120px;" size="1"', 'value', 'text', $this->filterTitle);
     $lists['filterDesc'] = JHTML::_('select.genericlist', $metas, 'filterDesc', 'class="inputbox" onchange="document.adminForm.submit();" style="width: 120px;" size="1"', 'value', 'text', $this->filterDesc);
     $lists['filterKeys'] = JHTML::_('select.genericlist', $metas, 'filterKeys', 'class="inputbox" onchange="document.adminForm.submit();" style="width: 120px;" size="1"', 'value', 'text', $this->filterKeys);
     // Language filter
     $sefConfig = SEFConfig::getConfig();
     if ($sefConfig->langEnable) {
         $langs = JLanguageHelper::getLanguages();
         $langList = array();
         $langList[] = JHTML::_('select.option', '', JText::_('COM_SEF_ALL'));
         foreach ($langs as $lng) {
             $langList[] = JHTML::_('select.option', $lng->sef, $lng->title);
         }
         $lists['filterLang'] = JHTML::_('select.genericlist', $langList, 'filterLang', 'class="inputbox" onchange="document.adminForm.submit();" size="1"', 'value', 'text', $this->filterLang);
     }
     $lists['filterReset'] = '<input type="button" class="btn" value="' . JText::_('COM_SEF_RESET') . '" onclick="resetFilters();" />';
     // Ordering
     $lists['filter_order'] = $this->filterOrder;
     $lists['filter_order_Dir'] = $this->filterOrderDir;
     return $lists;
 }
开发者ID:ranrolls,项目名称:ras-full-portal,代码行数:39,代码来源:metatags.php

示例2: getLists

 function getLists()
 {
     // Make the input boxes for hits filter
     $hitsCmp[] = JHTML::_('select.option', '0', '=');
     $hitsCmp[] = JHTML::_('select.option', '1', '>');
     $hitsCmp[] = JHTML::_('select.option', '2', '<');
     $lists['hitsCmp'] = JHTML::_('select.genericlist', $hitsCmp, 'filterHitsCmp', "class=\"inputbox\" style=\"float:none; width: 50px;\" onkeydown=\"return handleKeyDown(event);\" size=\"1\"", 'value', 'text', $this->filterHitsCmp);
     $lists['hitsVal'] = "<input type=\"text\" name=\"filterHitsVal\" value=\"{$this->filterHitsVal}\" style=\"float:none; width: 50px;\" size=\"5\" maxlength=\"10\" onkeydown=\"return handleKeyDown(event);\" />";
     // Make the input box for Itemid filter
     $lists['itemid'] = "<input type=\"text\" name=\"filterItemid\" value=\"{$this->filterItemid}\" style=\"width: 50px;\" size=\"5\" maxlength=\"10\" onkeydown=\"return handleKeyDown(event);\" />";
     // make the select list for the filter
     $viewmode[] = JHTML::_('select.option', '3', JText::_('COM_SEF_SHOW_ALL_REDIRECTS'));
     $viewmode[] = JHTML::_('select.option', '2', JText::_('COM_SEF_SHOW_CUSTOM_REDIRECTS'));
     $viewmode[] = JHTML::_('select.option', '0', JText::_('COM_SEF_SHOW_SEF_URLS'));
     $viewmode[] = JHTML::_('select.option', '6', JText::_('COM_SEF_SHOW_CACHED_ITEMS'));
     $viewmode[] = JHTML::_('select.option', '4', JText::_('COM_SEF_SHOW_LINKS_TO_HOMEPAGE'));
     $viewmode[] = JHTML::_('select.option', '1', JText::_('COM_SEF_SHOW_404_LOG'));
     $viewmode[] = JHTML::_('select.option', '5', JText::_('COM_SEF_SHOW_DUPLICITIES'));
     $lists['viewmode'] = JHTML::_('select.genericlist', $viewmode, 'viewmode', "class=\"inputbox\" onchange=\"document.adminForm.submit();\" size=\"1\"", 'value', 'text', $this->viewmode);
     // make the select list for the component filter
     $comList[] = JHTML::_('select.option', '', JText::_('COM_SEF_ALL'));
     $rows = SEFTools::getInstalledComponents();
     foreach (array_keys($rows) as $i) {
         $row =& $rows[$i];
         $comList[] = JHTML::_('select.option', $row->option, $row->name);
     }
     $lists['comList'] = JHTML::_('select.genericlist', $comList, 'comFilter', "class=\"inputbox\" onchange=\"document.adminForm.submit();\" size=\"1\"", 'value', 'text', $this->filterComponent);
     // make the filter text boxes
     $lists['filterSEF'] = "<input class=\"hasTip\" type=\"text\" name=\"filterSEF\" value=\"{$this->filterSEF}\" size=\"40\" maxlength=\"255\" onkeydown=\"return handleKeyDown(event);\" title=\"" . JText::_('COM_SEF_TT_FILTER_SEF') . "\" />";
     $lists['filterReal'] = "<input class=\"hasTip\" type=\"text\" name=\"filterReal\" value=\"{$this->filterReal}\" size=\"40\" maxlength=\"255\" onkeydown=\"return handleKeyDown(event);\" title=\"" . JText::_('COM_SEF_TT_FILTER_REAL') . "\" />";
     $lists['filterSEFRE'] = JText::_('COM_SEF_USE_RE') . '&nbsp;<input type="checkbox" style="float:none" ' . (substr($this->filterSEF, 0, 4) == 'reg:' ? 'checked="checked"' : '') . ' onclick="useRE(this, document.adminForm.filterSEF);" />';
     $lists['filterRealRE'] = JText::_('COM_SEF_USE_RE') . '&nbsp;<input type="checkbox" style="float:none" ' . (substr($this->filterReal, 0, 4) == 'reg:' ? 'checked="checked"' : '') . ' onclick="useRE(this, document.adminForm.filterReal);" />';
     // Language filter
     $sefConfig = SEFConfig::getConfig();
     if ($sefConfig->langEnable) {
         $langs = JLanguageHelper::getLanguages();
         $langList = array();
         $langList[] = JHTML::_('select.option', '', JText::_('COM_SEF_ALL'));
         foreach ($langs as $lng) {
             $langList[] = JHTML::_('select.option', $lng->sef, $lng->title);
         }
         $lists['filterLang'] = JHTML::_('select.genericlist', $langList, 'filterLang', 'class="inputbox" onchange="document.adminForm.submit();" size="1"', 'value', 'text', $this->filterLang);
     }
     $lists['filterReset'] = '<input type="button" class="btn" value="' . JText::_('COM_SEF_RESET') . '" onclick="resetFilters();" />';
     // Ordering
     $lists['filter_order'] = $this->filterOrder;
     $lists['filter_order_Dir'] = $this->filterOrderDir;
     // Selection
     $sel[] = JHTML::_('select.option', 'selected', JText::_('COM_SEF_ONLY_SELECTED'));
     if ($this->viewmode != 6) {
         $sel[] = JHTML::_('select.option', 'filtered', JText::_('COM_SEF_ALL_FILTERED'));
     }
     $lists['selection'] = JHTML::_('select.genericlist', $sel, 'sef_selection', 'class="inputbox" size="1"');
     // Actions
     $acts[] = JHTML::_('select.option', 'enable', JText::_('COM_SEF_ENABLE'));
     $acts[] = JHTML::_('select.option', 'disable', JText::_('COM_SEF_DISABLE'));
     $acts[] = JHTML::_('select.option', 'sefenable', JText::_('COM_SEF_SEF'));
     $acts[] = JHTML::_('select.option', 'sefdisable', JText::_('COM_SEF_DONT_SEF'));
     if ($this->viewmode != 6) {
         $acts[] = JHTML::_('select.option', 'lock', JText::_('COM_SEF_LOCK'));
         $acts[] = JHTML::_('select.option', 'unlock', JText::_('COM_SEF_UNLOCK'));
         $acts[] = JHTML::_('select.option', 'sep', '---');
         $acts[] = JHTML::_('select.option', 'copy_to_cache', JText::_('COM_SEF_COPY_TO_CACHE'));
         $acts[] = JHTML::_('select.option', 'update_urls', JText::_('COM_SEF_UPDATE_URLS'));
         $acts[] = JHTML::_('select.option', 'update_metas', JText::_('COM_SEF_UPDATE_META_TAGS'));
         $acts[] = JHTML::_('select.option', 'change_metas', JText::_('COM_SEF_CHANGE_META_TAGS'));
     }
     $acts[] = JHTML::_('select.option', 'sep', '---');
     $acts[] = JHTML::_('select.option', 'delete', JText::_('COM_SEF_DELETE'));
     if ($this->viewmode != 6) {
         $acts[] = JHTML::_('select.option', 'export', JText::_('COM_SEF_EXPORT'));
     }
     $lists['actions'] = JHTML::_('select.genericlist', $acts, 'sef_actions', 'class="inputbox" size="1"');
     return $lists;
 }
开发者ID:01J,项目名称:bealtine,代码行数:75,代码来源:sefurls.php

示例3: getLists

 function getLists()
 {
     // make the select list for the component filter
     $comList[] = JHTML::_('select.option', '', JText::_('COM_SEF_ALL'));
     $comList[] = JHTML::_('select.option', '-', JText::_('COM_SEF_LOGS_EMPTY'));
     $rows = SEFTools::getInstalledComponents();
     foreach (array_keys($rows) as $i) {
         $row =& $rows[$i];
         $comList[] = JHTML::_('select.option', $row->option, $row->name);
     }
     $lists['comList'] = JHTML::_('select.genericlist', $comList, 'comFilter', "class=\"inputbox\" onchange=\"document.adminForm.submit();\" size=\"1\"", 'value', 'text', $this->filterComponent);
     // make the filter text boxes
     $lists['filterMessage'] = "<input type=\"text\" name=\"filterMessage\" value=\"{$this->filterMessage}\" size=\"40\" maxlength=\"255\" onkeydown=\"return handleKeyDown(event);\" />";
     $lists['filterPage'] = "<input type=\"text\" name=\"filterPage\" value=\"{$this->filterPage}\" size=\"40\" maxlength=\"255\" onkeydown=\"return handleKeyDown(event);\" />";
     $lists['filterUrl'] = "<input type=\"text\" name=\"filterUrl\" value=\"{$this->filterUrl}\" size=\"40\" maxlength=\"255\" onkeydown=\"return handleKeyDown(event);\" />";
     // Reset button
     $lists['filterReset'] = '<input type="button" value="' . JText::_('COM_SEF_RESET') . '" onclick="resetFilters();" />';
     // Ordering
     $lists['filter_order'] = $this->filterOrder;
     $lists['filter_order_Dir'] = $this->filterOrderDir;
     return $lists;
 }
开发者ID:ranrolls,项目名称:ras-full-portal,代码行数:22,代码来源:logger.php

示例4: _loadComponents

 function _loadComponents()
 {
     if (isset($this->_components)) {
         return;
     }
     $this->_components = SEFTools::getInstalledComponents();
 }
开发者ID:01J,项目名称:bealtine,代码行数:7,代码来源:extensions.php


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