Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Files | Namespaces | Classes | Functions | Variables
block_timeline

Files

file  access.php
 Capabilities for the timeline block.
 
file  block_timeline.php
 Contains the class for the Timeline block.
 
file  install.php
 Timeline block installation.
 
file  lib.php
 Library functions for timeline.
 
file  main.php
 Class containing data for timeline block.
 
file  provider.php
 Privacy Subsystem implementation for block_timeline.
 
file  renderer.php
 Timeline block rendrer.
 
file  version.php
 Version details for the timeline block.
 

Namespaces

 block_timeline\output
  
 
 block_timeline\privacy
  
 

Classes

class  block_timeline
 Timeline block class. More...
 
class  block_timeline\output\main
 Class containing data for timeline block. More...
 
class  block_timeline\output\renderer
 Timeline block renderer. More...
 
class  block_timeline\privacy\provider
 Privacy Subsystem for block_timeline. More...
 

Functions

 block_timeline_user_preferences ()
 Returns the name of the user preferences as well as the details this plugin uses. More...
 
 xmldb_block_timeline_install ()
 Add the timeline block to the dashboard for all users by default when it is installed.
 

Variables

 $capabilities
 
const BLOCK_TIMELINE_ACTIVITIES_LIMIT_DEFAULT 5
 
const BLOCK_TIMELINE_FILTER_BY_30_DAYS 'next30days'
 
const BLOCK_TIMELINE_FILTER_BY_3_MONTHS 'next3months'
 
const BLOCK_TIMELINE_FILTER_BY_6_MONTHS 'next6months'
 
const BLOCK_TIMELINE_FILTER_BY_7_DAYS 'next7days'
 
const BLOCK_TIMELINE_FILTER_BY_NONE 'all'
 Define constants to store the FILTER user preference.
 
const BLOCK_TIMELINE_FILTER_BY_OVERDUE 'overdue'
 
const BLOCK_TIMELINE_SORT_BY_COURSES 'sortbycourses'
 
const BLOCK_TIMELINE_SORT_BY_DATES 'sortbydates'
 Define constants to store the SORT user preference.
 
$plugin component = 'block_timeline'
 
$plugin requires = 2019111200
 
$plugin version = 2019111800
 

Detailed Description

Function Documentation

◆ block_timeline_user_preferences()

block_timeline_user_preferences ( )

Returns the name of the user preferences as well as the details this plugin uses.

Return values
array

Variable Documentation

◆ $capabilities

$capabilities
Initial value:
= array(
'block/timeline:myaddinstance' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
),
'clonepermissionsfrom' => 'moodle/my:manageblocks'
)
)
CONTEXT_SYSTEM
const CONTEXT_SYSTEM
System context level - only one instance in every system.
Definition: accesslib.php:122
CAP_ALLOW
const CAP_ALLOW
Allow permission, overrides CAP_PREVENT defined in parent contexts.
Definition: accesslib.php:115