I'm working with Views 2 in Drupal 6, and I am having difficulty finding documentation on the methods of the View object. Is there any PHP function like print_r that outputs methods as well as fields?
I believe you're looking for get_class_methods. If this is the case, get_class_vars may also interest you.
The Reflection API might be of interest to you (if it's not overkill). Specifically:-
<?php
Reflection::export(new ReflectionClass('View'));
?>
Check out the manual for more in-depth examples.
Besides the functions mentioned by Mathachew you can also take a look at Reflection, especially the ReflectionClass
class.
$class = new ReflectionClass('YourViewClass');
$class->getMethods();
$class->getProperties();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With