3 require_once 'Pman.php';
4 class Pman_Builder_Palette extends Pman
6 // generic list we do not care who looks at it..
15 return $this->roousage();
17 // list of properties or events.
18 // gets xns+xtype+list
19 $ff = HTML_FlexyFramework::get();
21 $cls = $_REQUEST['xns'] . '.' . $_REQUEST['xtype'];
23 $data = json_decode(file_get_contents($ff->rootDir . '/roojs1/docs/json/roodata.json'));
25 //echo '<PRE>'; print_R($data);
27 $out = $data->data->{ $cls } -> {$_REQUEST['list'] };
31 'name' => "builder.sharedname",
32 'desc' => "This is a shared part, between different parts (modifying it will change other pages",
33 'memberOf' => "Builder",
39 'name' => "flexy:foreach",
40 'desc' => "Loop foreach (array,key,val|array,val)",
41 'memberOf' => "Flexy",
47 'desc' => "if condition - put 0 to always disable it",
48 'memberOf' => "Flexy",
55 array_push($out,$add);
67 function roousage() // list of what elements, can have what as children..
71 // this is our hand made file at present.. shared with app.Builders code.
73 $lines = file(dirname(__FILE__).'/RooUsage.txt');
77 foreach($lines as $l) {
79 $l = preg_replace('#//.*#', '', $l);
81 if (!strlen(trim($l))){
84 if (preg_match('/left:$/', $l)) {
89 if (preg_match('/right:$/', $l)) {
99 if (!isset($res[$l])) {
102 foreach($left as $ll) {
103 $res[$l][$ll] = true;
114 foreach($res as $k=>$v) {
117 'parents' => array_keys($v)
121 // echo '<PRE>';print_r($ret);
125 //echo '<PRE>';print_R($ret);exit;