123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- <?php
- class SimpleReflection {
- var $_interface;
-
- function SimpleReflection($interface) {
- $this->_interface = $interface;
- }
-
- function classExists() {
- return class_exists($this->_interface);
- }
-
- function classExistsSansAutoload() {
- return class_exists($this->_interface);
- }
-
- function classOrInterfaceExists() {
- return class_exists($this->_interface);
- }
-
- function classOrInterfaceExistsSansAutoload() {
- return class_exists($this->_interface);
- }
-
- function getMethods() {
- return get_class_methods($this->_interface);
- }
-
- function getInterfaces() {
- return array();
- }
-
- function getParent() {
- return strtolower(get_parent_class($this->_interface));
- }
-
- function isAbstract() {
- return false;
- }
-
- function isInterface() {
- return false;
- }
-
- function hasFinal() {
- return false;
- }
-
- function getSignature($method) {
- return "function &$method()";
- }
- }
- ?>
|