From: Michael Wallner Date: Thu, 29 Mar 2007 16:42:01 +0000 (+0000) Subject: I don't want to document interface methods X-Git-Tag: RELEASE_1_5_3~11 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=0de60a2d6b0a9be44786ca2418169c54157c758d;p=m6w6%2Fext-http I don't want to document interface methods --- diff --git a/scripts/check_docs.php b/scripts/check_docs.php index 679e8ca..79e5ff5 100755 --- a/scripts/check_docs.php +++ b/scripts/check_docs.php @@ -52,7 +52,13 @@ foreach ($ext->getClasses() as $class) { } foreach ($class->getMethods() as $meth) { /* @var $meth ReflectionMethod */ - fg(sprintf("%s/%s.xml", $class->getName(), strtr(trim($meth->getName(),'_'),'_','-'))) or printf("\t%s::%s()\n", $class->getName(), $meth->getName()); + try { + $meth->getPrototype(); + } catch (Exception $ex) { + // if getPrototype throws an exception it's definitely not a method declared in an interface + fg(sprintf("%s/%s.xml", $class->getName(), strtr(trim($meth->getName(),'_'),'_','-'))) or printf("\t%s::%s()\n", $class->getName(), $meth->getName()); + } + } printf("\n"); }