From 0de60a2d6b0a9be44786ca2418169c54157c758d Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 29 Mar 2007 16:42:01 +0000 Subject: [PATCH] I don't want to document interface methods --- scripts/check_docs.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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"); } -- 2.30.2