3 require_once 'Pman.php';
4 class Pman_Builder_Palette extends Pman
6 // generic list we do not care who looks at it..
16 return $this->roousage();
18 // list of properties or events.
19 // gets xns+xtype+list
20 $ff = HTML_FlexyFramework::get();
22 $cls = $_REQUEST['xns'] . '.' . $_REQUEST['xtype'];
24 $data = json_decode(file_get_contents($ff->rootDir . '/roojs1/docs/json/roodata.json'));
26 //echo '<PRE>'; print_R($data);
28 $out = $data->data->{ $cls } -> {$_REQUEST['list'] };
32 'name' => "builder.sharedname",
33 'desc' => "This is a shared part, between different parts (modifying it will change other pages",
34 'memberOf' => "Builder",
40 'name' => "flexy:foreach",
41 'desc' => "Loop foreach (array,key,val|array,val)",
42 'memberOf' => "Flexy",
48 'desc' => "if condition - put 0 to always disable it",
49 'memberOf' => "Flexy",
56 array_push($out,$add);
68 function roousage() // list of what elements, can have what as children..
72 // this is our hand made file at present.. shared with app.Builders code.
74 $lines = file(dirname(__FILE__).'/RooUsage.txt');
78 foreach($lines as $l) {
80 $l = preg_replace('#//.*#', '', $l);
82 if (!strlen(trim($l))){
85 if (preg_match('/left:$/', $l)) {
90 if (preg_match('/right:$/', $l)) {
100 if (!isset($res[$l])) {
103 foreach($left as $ll) {
104 $res[$l][$ll] = true;
115 foreach($res as $k=>$v) {
118 'parents' => array_keys($v)
122 // echo '<PRE>';print_r($ret);
126 //echo '<PRE>';print_R($ret);exit;