Readers.php
[Pman.Builder] / Palette.php
index 8e7f868..54f21bd 100644 (file)
@@ -9,7 +9,7 @@ class Pman_Builder_Palette extends Pman
         return true;
     }
     
-    function get($sub)
+    function get($sub, $opts = array())
     {
         if (empty($sub)) {
             return $this->roousage();
@@ -22,7 +22,49 @@ class Pman_Builder_Palette extends Pman
         
         $data = json_decode(file_get_contents($ff->rootDir . '/roojs1/docs/json/roodata.json'));
         
-        $this->jdata($data->data->{ $cls } -> {$_REQUEST['list'] } );
+        //echo '<PRE>'; print_R($data);
+        
+        $out = $data->data->{ $cls } -> {$_REQUEST['list'] };
+        if ($sub == 'Prop') {
+            foreach(array(
+                array(
+                    'name' => "builder.sharedname",
+                    'desc'  => "This is a shared part, between different parts (modifying it will change other pages",
+                    'memberOf' => "Builder",
+                    
+                    'type' => "Boolean"
+                ),
+                
+                array(
+                    'name' => "flexy:foreach",
+                    'desc'  => "Loop foreach (array,key,val|array,val)",
+                    'memberOf' => "Flexy",
+                    
+                    'type' => "String"
+                ),
+                array(
+                    'name' => "flexy:if",
+                    'desc'  => "if condition - put 0 to always disable it",
+                    'memberOf' => "Flexy",
+                    
+                    'type' => "String"
+                ),
+                array(
+                    'name' => "flexy:nameuses",
+                    'desc'  => "nameuses",
+                    'memberOf' => "Flexy",
+                    'type' => "String"
+                ),
+                
+            ) as  $add) {
+                array_push($out,$add);
+            }
+  
+            
+            
+         
+        }
+        $this->jdata($out );
               
         // 
         
@@ -80,6 +122,10 @@ class Pman_Builder_Palette extends Pman
                 'parents' =>  array_keys($v) 
             );
         }
+        
+       // echo '<PRE>';print_r($ret);
+       
+        
         $this->jdata($ret);
         //echo '<PRE>';print_R($ret);exit;
     }