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


PHP vCal::setLocation方法代码示例

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


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

示例1: vcal

 /**
  * offers the vcal/ical functonality
  * 
  * @todo Not yet working
  *
  * @author Lybegard Karl-Olof
  * @since 0.9
  */
 function vcal()
 {
     $mainframe =& JFactory::getApplication();
     $task = JRequest::getWord('task');
     $id = JRequest::getInt('id');
     $user_offset = $mainframe->getCfg('offset_user');
     //get Data from model
     $model =& $this->getModel('Details', 'RedEventModel');
     $model->setId((int) $id);
     $row = $model->getDetails();
     $Start = mktime(strftime('%H', strtotime($row->times)), strftime('%M', strtotime($row->times)), strftime('%S', strtotime($row->times)), strftime('%m', strtotime($row->dates)), strftime('%d', strtotime($row->dates)), strftime('%Y', strtotime($row->dates)), 0);
     $End = mktime(strftime('%H', strtotime($row->endtimes)), strftime('%M', strtotime($row->endtimes)), strftime('%S', strtotime($row->endtimes)), strftime('%m', strtotime($row->enddates)), strftime('%d', strtotime($row->enddates)), strftime('%Y', strtotime($row->enddates)), 0);
     require_once JPATH_COMPONENT_SITE . DS . 'classes' . DS . 'vcal.class.php';
     $v = new vCal();
     $v->setTimeZone($user_offset);
     $v->setSummary($row->venue . '-' . $row->catname . '-' . $row->full_title);
     $v->setDescription($row->datdescription);
     $v->setStartDate($Start);
     $v->setEndDate($End);
     $v->setLocation($row->street . ', ' . $row->plz . ', ' . $row->city . ', ' . $row->country);
     $v->setFilename((int) $row->did);
     if ($task == 'vcal') {
         $v->generateHTMLvCal();
     } else {
         $v->generateHTMLiCal();
     }
 }
开发者ID:,项目名称:,代码行数:35,代码来源:


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