SproutCMS

This is the code documentation for the SproutCMS project

class Debug

Useful methods for debugging

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2024-11-25
**/
class NewClassName extends Debug {
    
    /**
    * Converts a DB result set or similar multi-dimensional array into HTML for a table
    **/
    public function table (array|PDOStatement $data) {
        // Method code goes here
    }
    
    /**
    * Determines the type of a variable.
    * 
    * For objects, the class name is returned. For other variable types,
    * the type and possibly some extra info about its value is returned.
    **/
    public function type (mixed $val) {
        // Method code goes here
    }
    
    /**
    * Wraps a value in  tags and calls print_r to show all of its data.
    * 
    * N.B. Boolean and null values are displayed as strings instead of merely
    * returning an empty .
    **/
    public function pre (mixed $val) {
        // Method code goes here
    }
    
}
?>