Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
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: