Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
core\output\mustache_shorten_text_helper Class Reference

This class will call shorten_text with the section content. More...

Public Member Functions

 shorten ($args, Mustache_LambdaHelper $helper)
 Read a length and text component from the string.
 

Detailed Description

This class will call shorten_text with the section content.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ shorten()

core\output\mustache_shorten_text_helper::shorten ( $args,
Mustache_LambdaHelper $helper )

Read a length and text component from the string.

{{#shortentext}}50,Some test to shorten{{/shortentext}}

Both args are required. The length must come first.

Parameters
string$argsThe text to parse for arguments.
Mustache_LambdaHelper$helperUsed to render nested mustache variables.
Return values
string

The documentation for this class was generated from the following file: