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


PHP JEV_CommonFunctions::getJEventsViewList方法代码示例

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


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

示例1: getOptions

 public function getOptions()
 {
     // Must load admin language files
     $lang = JFactory::getLanguage();
     $lang->load("com_jevents", JPATH_ADMINISTRATOR);
     $views = array();
     include_once JPATH_ADMINISTRATOR . "/components/com_jevents/jevents.defines.php";
     $exceptions_values = (string) $this->element['except'] ? (string) $this->element['except'] : "";
     $exceptions = array();
     $exceptions = explode(',', $exceptions_values);
     foreach (JEV_CommonFunctions::getJEventsViewList((string) $this->element["viewtype"]) as $viewfile) {
         if (in_array($viewfile, $exceptions)) {
             continue;
         }
         $views[] = JHTML::_('select.option', $viewfile, $viewfile);
     }
     sort($views);
     if ($this->menu != 'hide') {
         $task = JRequest::getVar('task');
         if ($task == "params.edit") {
             unset($views['global']);
         } else {
             array_unshift($views, JHTML::_('select.option', 'global', JText::_('USE_GLOBAL')));
         }
     }
     return $views;
 }
开发者ID:hriggs,项目名称:cs-website,代码行数:27,代码来源:jevview.php

示例2: getJEventsViewName

 function getJEventsViewName()
 {
     static $jEventsView;
     if (!isset($jEventsView)) {
         $cfg =& JEVConfig::getInstance();
         // priority of view setting is url, cookie, config,
         $jEventsView = $cfg->get('com_calViewName', "geraint");
         $jEventsView = JRequest::getString("jevents_view", $jEventsView, "cookie");
         $jEventsView = JRequest::getString("jEV", $jEventsView);
         // security check
         if (!in_array($jEventsView, JEV_CommonFunctions::getJEventsViewList())) {
             $jEventsView = "geraint";
         }
     }
     return $jEventsView;
 }
开发者ID:madseller,项目名称:coperio,代码行数:16,代码来源:commonfunctions.php

示例3: getOptions

 public function getOptions()
 {
     // Must load admin language files
     $lang =& JFactory::getLanguage();
     $lang->load("com_jevents", JPATH_ADMINISTRATOR);
     $views = array();
     include_once JPATH_ADMINISTRATOR . "/components/com_jevents/jevents.defines.php";
     foreach (JEV_CommonFunctions::getJEventsViewList() as $viewfile) {
         $views[] = JHTML::_('select.option', $viewfile, $viewfile);
     }
     sort($views);
     if ($this->menu != 'hide') {
         array_unshift($views, JHTML::_('select.option', '', JText::_('USE_GLOBAL')));
     }
     return $views;
 }
开发者ID:andreassetiawanhartanto,项目名称:PDKKI,代码行数:16,代码来源:jevview.php

示例4: fetchElement

 function fetchElement($name, $value, &$node, $control_name)
 {
     // Must load admin language files
     $lang = JFactory::getLanguage();
     $lang->load("com_jevents", JPATH_ADMINISTRATOR);
     $views = array();
     include_once JPATH_ADMINISTRATOR . "/components/com_jevents/jevents.defines.php";
     foreach (JEV_CommonFunctions::getJEventsViewList() as $viewfile) {
         $views[] = JHTML::_('select.option', $viewfile, $viewfile);
         $load = $lang->load("com_jevents", JPATH_SITE . "/components/com_jevents/views/" . $viewfile . "/assets");
     }
     sort($views);
     if ($node->attributes('menu') != 'hide') {
         array_unshift($views, JHTML::_('select.option', '', JText::_('USE_GLOBAL')));
     }
     return JHTML::_('select.genericlist', $views, '' . $control_name . '[' . $name . ']', '', 'value', 'text', $value, $control_name . $name);
 }
开发者ID:madcsaba,项目名称:li-de,代码行数:17,代码来源:jevview.php

示例5: foreach

            echo $tabs->endPanel();
        }
    }
    $haslayouts = false;
    foreach (JEV_CommonFunctions::getJEventsViewList() as $viewfile) {
        $config = JPATH_SITE . "/components/" . JEV_COM_COMPONENT . "/views/" . $viewfile . "/config.xml";
        if (file_exists($config)) {
            $haslayouts = true;
        }
    }
    if ($haslayouts) {
        echo $tabs->startPanel(JText::_("CLUB_LAYOUTS"), "CLUB_LAYOUTS");
        echo $tabs->startPane('layouts');
    }
    // Now get layout specific parameters
    foreach (JEV_CommonFunctions::getJEventsViewList() as $viewfile) {
        $config = JPATH_SITE . "/components/" . JEV_COM_COMPONENT . "/views/" . $viewfile . "/config.xml";
        if (file_exists($config)) {
            $viewparams = new JevParameter($this->params->toString(), $config);
            echo $tabs->startPanel(JText::_(ucfirst($viewfile)), 'config_' . str_replace(" ", "_", $viewfile));
            echo $viewparams->render();
            echo $tabs->endPanel();
        }
    }
    if ($haslayouts) {
        echo $tabs->endPanel();
        echo $tabs->endPane();
    }
    echo $tabs->endPane();
} else {
    echo $this->params->render();
开发者ID:madseller,项目名称:coperio,代码行数:31,代码来源:edit16.php


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