[BUG #7501]  Added missing API documentation and changed the meaning form the third parameter from showLeafs to ignoreLeafs.