API CHANGE: Deprecated ClassInfo::is_subclass_of() in favour of is_subclass_of().

This commit is contained in:
ajshort 2011-02-21 15:30:54 +11:00
parent 393893aa6d
commit d187718a3f

8
core/ClassInfo.php Executable file → Normal file
View File

@ -177,12 +177,10 @@ class ClassInfo {
}
/**
* Returns true if $subclass is a subclass of $parentClass.
* Identical to the PHP built-in function, but faster.
* @deprecated 3.0 Please use is_subclass_of.
*/
static function is_subclass_of($subclass, $parentClass) {
global $_ALL_CLASSES;
return isset($_ALL_CLASSES['parents'][$subclass][$parentClass]);
public static function is_subclass_of($class, $parent) {
return is_subclass_of($class, $parent);
}
/**