예제 #1
0
 /**
  * Method to a formated and structured string of date infos
  *
  * @access public
  * @return string
  */
 function _builddateinfo($date, $enddate, $time, &$params)
 {
     $date = modEventListHelper::_format_date($date, $params);
     $enddate = !empty($enddate) ? modEventListHelper::_format_date($enddate, $params) : null;
     $time = !empty($time) ? modEventListHelper::_format_time($time, $params) : null;
     $dateinfo = $date;
     if (isset($enddate)) {
         $dateinfo .= ' - ' . $enddate;
     }
     if (isset($time)) {
         $dateinfo .= ' | ' . $time;
     }
     return $dateinfo;
 }
예제 #2
0
<?php

/**
 * @version 0.9 $Id: mod_eventlist.php 524 2008-01-21 14:34:33Z schlu $
 * @package Joomla
 * @subpackage EventList
 * @copyright (C) 2005 - 2008 Christoph Lukes
 * @license GNU/GPL, see LICENCE.php
 * EventList is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License 2
 * as published by the Free Software Foundation.
 * EventList is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with EventList; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
// no direct access
defined('_JEXEC') or die('Restricted access');
// get helper
require_once dirname(__FILE__) . DS . 'helper.php';
$list = modEventListHelper::getList($params);
// check if any results returned
$items = count($list);
if (!$items) {
    return;
}
require JModuleHelper::getLayoutPath('mod_eventlist');
예제 #3
0
 /**
  * Method to a formated and structured string of date infos
  *
  * @access public
  * @return string
  */
 function _builddateinfo($row, &$params)
 {
     $date = modEventListHelper::_format_date($row->dates, $row->times, $params->get('formatdate', '%d.%m.%Y'));
     $enddate = $row->enddates ? modEventListHelper::_format_date($row->enddates, $row->endtimes, $params->get('formatdate', '%d.%m.%Y')) : null;
     $time = $row->times ? modEventListHelper::_format_date($row->dates, $row->times, $params->get('formattime', '%H:%M')) : null;
     $dateinfo = $date;
     if (isset($enddate)) {
         $dateinfo .= ' - ' . $enddate;
     }
     if (isset($time)) {
         $dateinfo .= ' | ' . $time;
     }
     return $dateinfo;
 }