|
Moodle PHP Documentation 4.1
Moodle 4.1.19+ (Build: 20250711) (5f47dc23ffc)
|
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. | |
This class will call shorten_text with the section content.
| 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.
| string | $args | The text to parse for arguments. |
| Mustache_LambdaHelper | $helper | Used to render nested mustache variables. |
| string |