[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/tests_runner/lib/simpletest/ -> reflection_php4.php (summary)

base include file for SimpleTest

Version: $Id: reflection_php4.php 5999 2007-06-18 13:13:08Z pachanga $
File Size: 136 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

SimpleReflection:: (12 methods):
  SimpleReflection()
  classExists()
  classExistsSansAutoload()
  classOrInterfaceExists()
  classOrInterfaceExistsSansAutoload()
  getMethods()
  getInterfaces()
  getParent()
  isAbstract()
  isInterface()
  hasFinal()
  getSignature()


Class: SimpleReflection  - X-Ref

Version specific reflection API.

SimpleReflection($interface)   X-Ref
Stashes the class/interface.

param: string $interface    Class or interface

classExists()   X-Ref
Checks that a class has been declared.

return: boolean        True if defined.

classExistsSansAutoload()   X-Ref
Needed to kill the autoload feature in PHP5
for classes created dynamically.

return: boolean        True if defined.

classOrInterfaceExists()   X-Ref
Checks that a class or interface has been
declared.

return: boolean        True if defined.

classOrInterfaceExistsSansAutoload()   X-Ref
Needed to kill the autoload feature in PHP5
for classes created dynamically.

return: boolean        True if defined.

getMethods()   X-Ref
Gets the list of methods on a class or
interface.

returns: array          List of method names.

getInterfaces()   X-Ref
Gets the list of interfaces from a class. If the
class name is actually an interface then just that
interface is returned.

returns: array          List of interfaces.

getParent()   X-Ref
Finds the parent class name.

returns: string      Parent class name.

isAbstract()   X-Ref
Determines if the class is abstract, which for PHP 4
will never be the case.

returns: boolean      True if abstract.

isInterface()   X-Ref
Determines if the the entity is an interface, which for PHP 4
will never be the case.

returns: boolean      True if interface.

hasFinal()   X-Ref
Scans for final methods, but as it's PHP 4 there
aren't any.

returns: boolean   True if the class has a final method.

getSignature($method)   X-Ref
Gets the source code matching the declaration
of a method.

param: string $method          Method name.



Generated: Sat Nov 22 03:48:54 2008 Cross-referenced by PHPXref 0.7