1.1 --- a/php/sigfiles/generate.php Fri Jun 09 09:16:56 2017 +0200
1.2 +++ b/php/sigfiles/generate.php Mon Jun 12 09:13:11 2017 +0200
1.3 @@ -133,6 +133,8 @@
1.4 'oci_collection_trim' => 1,
1.5 'oci_collection_assign' => 1,
1.6 );
1.7 +$methodBlackList = array(
1.8 +);
1.9 $preferHtmlProperties = array(
1.10 'mysqli',
1.11 );
1.12 @@ -626,7 +628,7 @@
1.13 * @param tabs integer[optional] number of tabs for indentation
1.14 */
1.15 function print_class (ReflectionClass $classRef, $tabs = 0) {
1.16 - global $processedClasses, $preferHtmlProperties;
1.17 + global $processedClasses, $preferHtmlProperties, $methodBlackList;
1.18 $processedClasses [strtolower($classRef->getName())] = true;
1.19
1.20 print "\n";
1.21 @@ -708,6 +710,10 @@
1.22 $methodsRef = $classRef->getMethods();
1.23 if (count ($methodsRef) > 0) {
1.24 foreach ($methodsRef as $methodRef) {
1.25 + /* @var $methodRef ReflectionMethod */
1.26 + if (in_array(strtolower($methodRef->getName()), $methodBlackList)) {
1.27 + continue;
1.28 + }
1.29 print_method($classRef, $methodRef, $tabs + 1);
1.30 }
1.31 print "\n";
1.32 @@ -1045,6 +1051,7 @@
1.33 global $functionsDoc;
1.34 global $classesDoc;
1.35 global $fieldsDoc;
1.36 + global $methodBlackList;
1.37
1.38 $docComment = $ref->getDocComment();
1.39 if ($docComment) {
1.40 @@ -1064,7 +1071,9 @@
1.41 }
1.42 // @method
1.43 foreach ($ref->getMethods() as $method) {
1.44 - print_magic_method($ref, $method, $tabs);
1.45 + if (in_array(strtolower($method->getName()), $methodBlackList)) {
1.46 + print_magic_method($ref, $method, $tabs);
1.47 + }
1.48 }
1.49 if (@$classesDoc[$refname]['id']) {
1.50 print_Tabs ($tabs);