SproutCMS

This is the code documentation for the SproutCMS project

class ColModifierLookupTable

Returns data from a database table.

This is basically than ColModifierLookupArray(Pdb::lookup),
but it doesn't call the Pdb::lookup until right before it's needed,
so if the itemlist doesn't get used, we aren't wasting a db call.

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2026-09-12
**/
class NewClassName extends ColModifierLookupTable {
    
    /**
    * Modify a column value
    * This value will be html/csv/etc encoded afterwards.
    **/
    public function modify (string $val, string $field_name) {
        // Method code goes here
    }
    
    public function __construct ($table) {
        // Method code goes here
    }
    
}
?>