⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 module.php

📁 是一个教学内容管理系统
💻 PHP
字号:
<?php
if (!defined('AT_INCLUDE_PATH')) { exit; }
if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }

define('AT_PRIV_CALENDAR', $this->getPrivilege());

// if this module is to be made available to students on the Home or Main Navigation
$_student_tool = 'calendar/index.php';

// register this module as a calendar source, must implement calendar_get_entries()
// register_hook('calendar_source', this);

/*
- reading list (start and end dates)
- tests (start and end dates)
- assignments (due and late submission dates)
- announcements (post date)
- calendar (implements course, group, multiple calendars for system as well as the display of the calendar)

each above module implements in module_calendar.php
mixed calendar_get_entries(int $start_timestamp, int $end_timestamp, mixed $owner_type, mixed $owner_id);

loop through all registered modules calling their run_hook('calendar_source', $owner_type, $owner_id) method, 
which then includes and runs the calendar_get_entries() function.

the calendar display doesn't have to know which modules implement calendar_get_entries().
*/


?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -