本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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);
}
示例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();