# HG changeset patch # User Tomas Mysik # Date 1497251591 -7200 # Node ID 640ddcff43333309444779e690ee08746bdc048d # Parent 73661dbdafd6ba80d8c69ce7052b095c3ddecd71 Return blacklisted methods back No blacklisted methods right now but keep the code for possible future usage. diff -r 73661dbdafd6 -r 640ddcff4333 php/sigfiles/generate.php --- a/php/sigfiles/generate.php Fri Jun 09 09:16:56 2017 +0200 +++ b/php/sigfiles/generate.php Mon Jun 12 09:13:11 2017 +0200 @@ -133,6 +133,8 @@ 'oci_collection_trim' => 1, 'oci_collection_assign' => 1, ); +$methodBlackList = array( +); $preferHtmlProperties = array( 'mysqli', ); @@ -626,7 +628,7 @@ * @param tabs integer[optional] number of tabs for indentation */ function print_class (ReflectionClass $classRef, $tabs = 0) { - global $processedClasses, $preferHtmlProperties; + global $processedClasses, $preferHtmlProperties, $methodBlackList; $processedClasses [strtolower($classRef->getName())] = true; print "\n"; @@ -708,6 +710,10 @@ $methodsRef = $classRef->getMethods(); if (count ($methodsRef) > 0) { foreach ($methodsRef as $methodRef) { + /* @var $methodRef ReflectionMethod */ + if (in_array(strtolower($methodRef->getName()), $methodBlackList)) { + continue; + } print_method($classRef, $methodRef, $tabs + 1); } print "\n"; @@ -1045,6 +1051,7 @@ global $functionsDoc; global $classesDoc; global $fieldsDoc; + global $methodBlackList; $docComment = $ref->getDocComment(); if ($docComment) { @@ -1064,7 +1071,9 @@ } // @method foreach ($ref->getMethods() as $method) { - print_magic_method($ref, $method, $tabs); + if (in_array(strtolower($method->getName()), $methodBlackList)) { + print_magic_method($ref, $method, $tabs); + } } if (@$classesDoc[$refname]['id']) { print_Tabs ($tabs);