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


PHP calendar::__construct方法代码示例

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


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

示例1: __construct

 /**
  * Initializes day calendar
  *
  * @param int $room - id from roomscheduler_rooms table
  * @param int $start_time - 0 to 23 representing start time of displayed content
  * @param int $end_time - 0 to 23 representing end time of displayed content
  * @param int $focus_time - focus time of calendar, defaults to time()
  */
 public function __construct($room, $focus_time = null)
 {
     parent::__construct($room, $focus_time);
     //Set instance of the calendar
     if ($this->count == null) {
         $this->count = 0;
     } else {
         $this->count++;
     }
     $this->instance = 'calendar_day_' . $this->count;
 }
开发者ID:nadavkav,项目名称:Moodle2-Hebrew-plugins,代码行数:19,代码来源:calendar_month.php

示例2: __construct

 /**
  * Initializes day calendar
  *
  * @param int $room - id from roomscheduler_rooms table
  * @param int $start_time - 0 to 23 representing start time of displayed content
  * @param int $end_time - 0 to 23 representing end time of displayed content
  * @param int $focus_time - focus time of calendar, defaults to time()
  */
 public function __construct($room, $course, $start_time = 8, $end_time = 5, $focus_time = null)
 {
     parent::__construct($room, $focus_time);
     $this->course = $course;
     if ($start_time > $end_time) {
         $this->start_time = $end_time;
         $this->end_time = $start_time;
     } else {
         $this->start_time = $start_time;
         $this->end_time = $end_time;
     }
     //Set instance of the calendar
     if ($this->count == null) {
         $this->count = 0;
     } else {
         $this->count++;
     }
     $this->instance = 'calendar_day_' . $this->count;
 }
开发者ID:nadavkav,项目名称:Moodle2-Hebrew-plugins,代码行数:27,代码来源:calendar_week.php

示例3: __construct

 /**
  * Initializes day calendar
  *
  * @param int $room - id from roomscheduler_rooms table
  * @param int $day - UNIX time stamp representing the day wanted
  * @param int $start_time - 0 to 23 representing start time of displayed content
  * @param int $end_time - 0 to 23 representing end time of displayed content
  * @param int $focus_time - focus time of calendar, defaults to time()
  */
 public function __construct($room, $day, $course, $start_time = 8, $end_time = 5, $show_toolbar = true, $focus_time = null)
 {
     parent::__construct($room, $focus_time);
     $this->course = $course;
     $this->day = $day;
     $this->miniCal = $day;
     if ($start_time > $end_time) {
         $this->start_time = $end_time;
         $this->end_time = $start_time;
     } else {
         $this->start_time = $start_time;
         $this->end_time = $end_time;
     }
     $this->show_toolbar = $show_toolbar;
     //Set instance of the calendar
     if ($this->count == null) {
         $this->count = 0;
     } else {
         $this->count++;
     }
     $this->instance = 'calendar_day_' . $this->count;
 }
开发者ID:nadavkav,项目名称:Moodle2-Hebrew-plugins,代码行数:31,代码来源:calendar_day.php


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