Ben PHP ile OOP için sıçrama yapıyorum. Tüm aktif sınıfları ve onların yöntemlerini ve özelliklerini listelemek için bir yolu var mı?
Complete list of similar functions :) strong>
Quick Look:
get_declared_classes() // gives you all declared classes
get_class_methods() // gives you all methods of class
get_class_vars() // gives you properties of the class
get_object_vars() // gives you propertis of an object
get_parent_class() // gives you parent class of the current class
Ayrıca, Reflection API offered by PHP ilginizi çekebilir.
Onların Girişte iddia ettiği gibi:
PHP 5 comes with a complete reflection API that adds the ability to reverse-engineer classes, interfaces, functions, methods and extensions. Additionally, the reflection API offers ways to retrieve doc comments for functions, classes and methods.