Class ClassInfo
Provides introspection information about the class tree. It's a cached wrapper around the built-in class functions. Sapphire uses class introspection heavily and without the caching it creates an unfortunate performance hit.
Methods summary
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
array
|
#
dataClassesFor( mixed $class )
Return the database tables linked to this class. Gets an array of the current class, it subclasses and its ancestors. It then filters that list to those with DB tables |
public static
array
|
#
baseDataClass( mixed $class )
Return the root data class for that class. This root table has a lot of special use in the DataObject system. |
public static
array
|
#
subclassesFor( mixed $class )
Returns a list of classes that inherit from the given class. The resulting array includes the base class passed through the $class parameter as the first array value. |
public static
|
|
public static
array
|
|
public static
|
#
classImplements( mixed $className, mixed $interfaceName )
Returns true if the given class implements the given interface |
public static
|
#
is_subclass_of( mixed $subclass, mixed $parentClass )
Returns true if $subclass is a subclass of $parentClass. Identical to the PHP built-in function, but faster. |
public static
array
|
|
public static
array
|
|
public static
|