trilha extends block
Public SDK Block.
Extend this class to publish Moodle blocks that delegate rendering and business logic to your extension services instead of Moodle globals.
Table of Contents
Constants
- TEMPLATE = 'Trilha'
Properties
- $title : string
Methods
- __construct() : mixed
- process_content() : array<string|int, mixed>
- Processes and gathers content information related to the user's "trilha" (trail) data.
- set_title() : void
- Sets the title for the current object.
Constants
TEMPLATE
public
mixed
TEMPLATE
= 'Trilha'
Properties
$title
public
string
$title
Methods
__construct()
public
__construct() : mixed
process_content()
Processes and gathers content information related to the user's "trilha" (trail) data.
public
process_content() : array<string|int, mixed>
This method retrieves default "trilha" information, checks its validity and enabled status, and compiles user and "trilha" specific data into an array. If no valid "trilha" exists, an empty array is returned.
Tags
Return values
array<string|int, mixed> —an array containing details about the user and the associated "trilha" or an empty array if no valid "trilha" is found
set_title()
Sets the title for the current object.
public
set_title() : void
This method assigns a predefined string value as the title for the object. It is used to define a consistent title representation for the instance.