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
This is the code documentation for the SproutCMS project
Search documentation |
class ColModifierSubRecordCountCounts 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 } } ?> |
Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Monday, 3rd April, 2023 at 02:59 pm |