cli : don't display the private/protected methods, they can't be called

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2363 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2015-10-14 05:44:17 +00:00
parent bb2dbb6dae
commit d2bba22013

View File

@@ -184,6 +184,9 @@ class cli
{
if ($method->name === "__construct")
continue;
// The private/protected methods can not be called
if ($method->isPrivate () || $method->isProtected ())
continue;
if ($key > 0 && $argv[0] !== "-listmethodsonly")
echo "\n";
if ($argv[0] !== "-listmethodsonly")