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. * @deprecated 3.0 Please use is_subclass_of.
* Identical to the PHP built-in function, but faster.
*/ */
static function is_subclass_of($subclass, $parentClass) { public static function is_subclass_of($class, $parent) {
global $_ALL_CLASSES; return is_subclass_of($class, $parent);
return isset($_ALL_CLASSES['parents'][$subclass][$parentClass]);
} }
/** /**