Swat/Swat.php
public static function displayMethods($object)
    {
        echo sprintf(self::_('Methods for class %s:'), get_class($object));
        echo '<ul>';

        foreach (get_class_methods(get_class($object)) as $method_name) {
            echo '<li>', $method_name, '</li>';
        }

        echo '</ul>';
    }
public static function displayMethods($object)
    {
        echo sprintf(self::_('Methods for class %s:'), get_class($object));
        echo '<ul>';

        foreach (get_class_methods(get_class($object)) as $method_name) {
            echo '<li>', $method_name, '</li>';
        }

        echo '</ul>';
    }
public static function displayMethods ( $ object ) { echo sprintf ( self :: _ ( 'Methods for class %s:' ) , get_class ( $ object ) ) ; echo '<ul>' ; foreach ( get_class_methods ( get_class ( $ object ) ) as $ method_name ) { echo '<li>' , $ method_name , '</li>' ; } echo '</ul>' ; }
Displays the methods of an object

This is useful for debugging.

@param mixed $object the object whose methods are to be displayed.
Displays the methods of an object