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


PHP SEFTools::getExtFilters方法代码示例

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


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

示例1: display

 function display($tpl = null)
 {
     // Get data from the model
     $extension =& $this->get('extension');
     $this->assignRef('extension', $extension);
     $this->langs = $this->get('languages');
     $this->strings = $this->get('strings');
     $this->translation = $this->get('translation');
     $this->subdomains = $this->get('subdomains');
     $this->menus = $this->get('menus');
     $filters =& SEFTools::getExtFilters($extension->option, false);
     $this->assignRef('filters', $filters);
     $acceptVars =& SEFTools::getExtAcceptVars($extension->option, false);
     sort($acceptVars, SORT_STRING);
     $this->assignRef('acceptVars', $acceptVars);
     // Root domain for subdomains configuration
     $rootDomain = JFactory::getURI()->getHost();
     if (substr($rootDomain, 0, 4) == 'www.') {
         $rootDomain = substr($rootDomain, 4);
     }
     $this->assign('rootDomain', $rootDomain);
     JToolBarHelper::title(JText::_('SEF Extension') . ' <small>' . JText::_('Edit') . ' [ ' . (strlen($extension->name) ? $extension->name : $extension->component->name) . ' ]</small>', 'plugin.png');
     JToolBarHelper::save();
     JToolBarHelper::apply();
     JToolBarHelper::spacer();
     JToolBarHelper::cancel();
     JHTML::_('behavior.tooltip');
     $redir = JRequest::getVar('redirto', '');
     $this->assignRef('redirto', $redir);
     parent::display($tpl);
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:view.html.php

示例2: display

 function display($tpl = null)
 {
     // Get data from the model
     $extension =& $this->get('extension');
     $this->assignRef('extension', $extension);
     $filters =& SEFTools::getExtFilters($extension->option, false);
     $this->assignRef('filters', $filters);
     $acceptVars =& SEFTools::getExtAcceptVars($extension->option, false);
     sort($acceptVars, SORT_STRING);
     $this->assignRef('acceptVars', $acceptVars);
     JToolBarHelper::title(JText::_('SEF Extension') . ' <small>' . JText::_('Edit') . ' [ ' . $extension->name . ' ]</small>', 'plugin.png');
     JToolBarHelper::save();
     JToolBarHelper::apply();
     JToolBarHelper::spacer();
     JToolBarHelper::cancel();
     JHTML::_('behavior.tooltip');
     $redir = JRequest::getVar('redirto', '');
     $this->assignRef('redirto', $redir);
     // Sliding pane
     $pane =& JPane::getInstance('tabs');
     $this->assignRef('pane', $pane);
     parent::display($tpl);
 }
开发者ID:andreassetiawanhartanto,项目名称:PDKKI,代码行数:23,代码来源:view.html.php

示例3: array

 function &getExtFiltersByVars($option, $includeGlobal = true)
 {
     static $byVars;
     if (!isset($byVars)) {
         $byVars = array();
     }
     if (empty($option)) {
         $option = '_default';
     }
     if (!isset($byVars[$option])) {
         $byVars[$option] = array();
         // Get filters
         $filters =& SEFTools::getExtFilters($option, $includeGlobal);
         if (count($filters) > 0) {
             // Loop through filter types (pos, neg)
             foreach ($filters as $type => $typeFilters) {
                 if (count($typeFilters) > 0) {
                     // Loop through filters
                     foreach ($typeFilters as $filter) {
                         if (count($filter->vars) > 0) {
                             // Loop through variables
                             foreach ($filter->vars as $var) {
                                 // Add filter to var and type
                                 if (!isset($byVars[$option][$var])) {
                                     $byVars[$option][$var] = array();
                                 }
                                 if (!isset($byVars[$option][$var][$type])) {
                                     $byVars[$option][$var][$type] = array();
                                 }
                                 $byVars[$option][$var][$type][] = $filter->rule;
                             }
                         }
                     }
                 }
             }
         }
     }
     return $byVars[$option];
 }
开发者ID:01J,项目名称:bealtine,代码行数:39,代码来源:seftools.php


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