mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE: Deprecated ClassInfo::is_subclass_of() in favour of is_subclass_of().
This commit is contained in:
parent
393893aa6d
commit
d187718a3f
8
core/ClassInfo.php
Executable file → Normal file
8
core/ClassInfo.php
Executable file → Normal 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]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user