tools/flutter_sqlite.php
authorAlan Knowles <alan@roojs.com>
Thu, 18 Apr 2019 04:41:38 +0000 (12:41 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 18 Apr 2019 04:41:38 +0000 (12:41 +0800)
tools/flutter_sqlite.php

index cf38fe3..fc75180 100644 (file)
@@ -892,7 +892,47 @@ class fsql {
         return $events;
         
     }
-    
+    function outParamSymbols($c)
+    {
+        
+          $res = $this->pdo->query("
+            SELECT
+                    id,
+                    desc,
+                    example,
+                    href,
+                    is_depricated as isDeprecated,
+                    value_type as type,
+                    type as dtype
+                from 
+                        node 
+                where 
+                        parent_id = {$c['id']}
+                        AND
+                        type IN ('param')
+                         
+                    
+                
+                order by
+                    qualifiedName ASC
+        ");
+        $all = $res->fetchAll(PDO::FETCH_ASSOC);
+        $events = array();
+        foreach($all as $evar) {
+            $ev = (object) $evar;
+            unset($ev->id);
+            $ev->isConstructor = $ev->dtype == 'constructor';
+             
+            $ev->static = false;
+            $ev->memberOf = $c['qualifiedName'];
+            $ev->params = $this->outParamSymbols($evar);
+            $ev->type = $this->typeStringToGeneric($ev->type);
+            $events[] = $ev;
+            
+        }
+        return $events;
+        
+    }
     
     
 }