- we're not interested in private properties
authorMichael Wallner <mike@php.net>
Thu, 5 Apr 2007 18:26:21 +0000 (18:26 +0000)
committerMichael Wallner <mike@php.net>
Thu, 5 Apr 2007 18:26:21 +0000 (18:26 +0000)
scripts/check_docs.php

index 79e5ff5eedd023b11a7c77227c65c01b487e2aac..fb6d9316a63e17c5846c3c2be3ce7f397d07e0dd 100755 (executable)
@@ -47,8 +47,8 @@ foreach ($ext->getClasses() as $class) {
                re($class->getName().".xml", "#>$name<#") or printf("\t%s::%s (%s)\n", $class->getName(), $name, $tmp);
        }
        foreach ($class->getProperties() as $prop) {
                re($class->getName().".xml", "#>$name<#") or printf("\t%s::%s (%s)\n", $class->getName(), $name, $tmp);
        }
        foreach ($class->getProperties() as $prop) {
-               // blatant guess
-               re($class->getName().".xml", "#>{$prop->getName()}<#") or printf("\t%s::$%s\n", $class->getName(), $prop->getName());
+               /* @var $prop ReflectionProperty */
+               $prop->isPrivate() or re($class->getName().".xml", "#>{$prop->getName()}<#") or printf("\t%s::$%s\n", $class->getName(), $prop->getName());
        }
        foreach ($class->getMethods() as $meth) {
                /* @var $meth ReflectionMethod */
        }
        foreach ($class->getMethods() as $meth) {
                /* @var $meth ReflectionMethod */