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:
3
cli.php
3
cli.php
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user