mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Ugly global $$obj
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@146141 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
39dd8a1e84
commit
c9299a3d52
1 changed files with 2 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<reference id="ref.classobj">
|
||||
<title>Class/Object Functions</title>
|
||||
<titleabbrev>Classes/Objects</titleabbrev>
|
||||
|
@ -134,8 +134,7 @@ function print_methods($obj) {
|
|||
}
|
||||
|
||||
function class_parentage($obj, $class) {
|
||||
global $$obj;
|
||||
if (is_subclass_of($$obj, $class)) {
|
||||
if (is_subclass_of($GLOBALS[$obj], $class)) {
|
||||
echo "Object $obj belongs to class ".get_class($$obj);
|
||||
echo " a subclass of $class\n";
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue