SproutCMS

This is the code documentation for the SproutCMS project

class ColModifierTruncate

Truncate the word count of a column with given word limit trailed by ellipsis symbol, with the full text in a title attribute

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2026-09-16
**/
class NewClassName extends ColModifierTruncate {
    
    public function __construct ($word_limit) {
        // Method code goes here
    }
    
    public function modify ($val, $field_name) {
        // Method code goes here
    }
    
}
?>