SproutCMS

This is the code documentation for the SproutCMS project

class ColModifierSubRecordCount

Counts records in a subtable.

E.g. count the records in a gallery_images table associated with records in a galleries table
The database query isn't done until the first record lookup

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2024-11-25
**/
class NewClassName extends ColModifierSubRecordCount {
    
    public function __construct (string $table, string $column) {
        // Method code goes here
    }
    
    /**
    * 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
    }
    
}
?>