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.
22 function roousage() // list of what elements, can have what as children..
26 $lines = file(dirname(__FILE__).'/RooUsage.txt');
30 foreach($lines as $l) {
32 $l = preg_replace('#//.*#', '', $l);
34 if (!strlen(trim($l))){
37 if (preg_match('/left:$/', $l)) {
42 if (preg_match('/right:$/', $l)) {
52 if (!isset($res[$l])) {
55 foreach($left as $ll) {
67 foreach($res as $k=>$v) {
70 'parents' => array_keys($v)
74 //echo '<PRE>';print_R($ret);exit;