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

index 861e6cc..a64bcb4 100644 (file)
@@ -854,7 +854,39 @@ class fsql {
     function outMethodSymbols($c)
     {
         
-        
+          $res = $this->pdo->query("
+            SELECT
+                    id,
+                    desc,
+                    example,
+                    href,
+                    is_depricated as isDeprecated,
+                    value_type as type
+                from 
+                        node 
+                where 
+                        parent_id = {$c['id']}
+                        AND
+                        type IN ('property')
+                         
+                    
+                
+                order by
+                    qualifiedName ASC
+        ");
+        $all = $res->fetchAll(PDO::FETCH_ASSOC);
+        $events = array();
+        foreach($all as $evar) {
+            $ev = (object) $evar;
+            unset($ev->id);
+            $ev->static = false;
+            $ev->memberOf = $c['qualifiedName'];
+            $ev->params = array(); // FIXME
+            $ev->type = $this->typeStringToGeneric($ev->type);
+            $events[] = $ev;
+            
+        }
+        return $events;
         
     }