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

Files

file  behat_blocks.php
 Steps definitions related with blocks.
 
file  edit_form.php
 Defines the base class form used by blocks/edit.php to edit block instance configuration.
 
file  external.php
 Blocks external API.
 
file  moodleblock.class.php
 This file contains the parent class for moodle blocks, block_base.
 
file  provider.php
 Data provider.
 

Namespaces

 core_block\privacy
  
 

Classes

class  behat_blocks
 
class  block_base
 Class for describing a moodle block, all Moodle blocks derive from this class. More...
 
class  block_edit_form
 The base class form used by blocks/edit.php to edit block instance configuration. More...
 
class  block_list
 Specialized class for displaying a block with a list of icons/text labels. More...
 
class  block_tree
 Specialized class for displaying a tree menu. More...
 
class  core_block\privacy\provider
 Data provider class. More...
 
class  core_block_external
 

Variables

const BLOCK_TYPE_LIST 1
 Constants. More...
 
const BLOCK_TYPE_TEXT 2
 Block type of text. More...
 
const BLOCK_TYPE_TREE 3
 Block type of tree. More...
 
 if (!defined( 'MOODLE_INTERNAL'))
 

Detailed Description

Variable Documentation

◆ BLOCK_TYPE_LIST

const BLOCK_TYPE_LIST 1

Constants.

Block type of list. Contents of block should be set as an associative array in the content object as items ($this->content->items). Optionally include footer text in $this->content->footer.

◆ BLOCK_TYPE_TEXT

const BLOCK_TYPE_TEXT 2

Block type of text.

Contents of block should be set to standard html text in the content object as items ($this->content->text). Optionally include footer text in $this->content->footer.

◆ BLOCK_TYPE_TREE

const BLOCK_TYPE_TREE 3

Block type of tree.

$this->content->items is a list of tree_item objects and $this->content->footer is a string.