public static function parse($node, $parent, $key = null)
 {
     $name = self::$parser->get($node, "name");
     $attributes = self::$parser->attributes($node);
     attributeParser::parse($node, $parent, "fields/" . $name . "/attributes");
     return true;
 }
 public static function parse($node, $parent, $key = null)
 {
     $id = self::$parser->get($node, "name");
     $process = self::$parser->getProcess();
     if (isset($process["parses"][0]["datastore"]["files"][$id])) {
         throw new XmlParserException("Duplicate file name found: " . $id);
     }
     attributeParser::parse($node, $parent, "datastore/files/" . $id . "/attributes");
     return true;
 }
 public static function parse($node, $parent, $key = null)
 {
     self::$parser->enumCheck("i:areaType", self::$parser->get($node, "type"));
     $key = "areas/" . self::$parser->get($node, "type") . "/attributes";
     attributeParser::parse($node, $parent, $key);
     if (self::$parser->has($node, null, "tab")) {
         self::add($key . "/tabbed", "true");
     } else {
         self::add($key . "/tabbed", "false");
         self::add("areas/" . self::$parser->get($node, "type") . "/tabs/0/attributes", array());
     }
     return true;
 }
 public static function parse($node, $parent, $key = null)
 {
     $process = self::$parser->getProcess();
     if (!isset($process["parses"][0]["areas"]["content"]["tabs"])) {
         $tabid = 0;
     } else {
         $tabid = count($process["parses"][0]["areas"]["content"]["tabs"]);
     }
     $key = "areas/" . self::$parser->get($parent, "type") . "/tabs/" . $tabid . "/attributes";
     attributeParser::parse($node, $parent, $key);
     self::add($key . "/id", "tab" . $tabid);
     self::$parser->set("id", "tab" . $tabid, $node);
     return true;
 }
 public static function parse($node, $parent, $key = null)
 {
     if (self::$parser->name($parent, true) == "area") {
         $tabid = 0;
         $type = self::$parser->get($parent, "type");
     } else {
         $tabid = str_replace("tab", "", self::$parser->get($parent, "id"));
         $type = self::$parser->get($parent->parentNode, "type");
     }
     $component = self::$parser->get($node, "name");
     $component_name = $component . preg_replace("/[\\. ]+/", "", microtime());
     attributeParser::parse($node, $parent, "areas/" . $type . "/tabs/" . $tabid . "/components/" . $component_name);
     self::$parser->set("name", $component_name, $node);
     return true;
 }
 public static function parse($node, $parent, $key = null)
 {
     $nodes = self::$parser->fetch("./i:action|./i:if/i:action", $node);
     $it = new nodeListIterator($nodes);
     if ($key === null) {
         $key = "actions";
     }
     self::$parser->set("name", $key, $node);
     foreach ($it as $n) {
         if (self::$parser->checkCredentials(null, $n)) {
             $action = self::$parser->get($n, "name");
             attributeParser::parse($n, $node, $key . "/" . $action . "/attributes");
         }
     }
     return true;
 }
 public static function parse($node, $parent, $key = null)
 {
     $nodes = self::$parser->fetch("./i:ref", $node);
     $id = self::$parser->has($node, "alias") ? self::$parser->get($node, "alias") : self::$parser->get($node, "name");
     $process = self::$parser->getProcess();
     if (isset($process["parses"][0]["datastore"]["tables"][$id])) {
         throw new XmlParserException("Duplicate table name found: " . $id);
     }
     attributeParser::parse($node, $parent, "datastore/tables/" . $id . "/attributes");
     self::add("datastore/tables/" . $id . "/attributes/class", self::$parser->get($node, "name"));
     $i = 0;
     foreach ($nodes as $n) {
         attributeParser::parse($n, $node, "datastore/tables/" . $id . "/fields/" . $i);
         $i++;
     }
     return true;
 }
 public static function parse($node, $parent, $key = null)
 {
     $element = $node->parentNode;
     $name = "node" . preg_replace("/[\\. ]+/", "", microtime());
     $kstr = array($name);
     while (get_class($element) == "DOMElement" && self::$parser->name($element) != "area") {
         $kstr[] = self::$parser->get($element, "name");
         if (self::$parser->name($element) == "tree") {
             $kstr[] = "components";
         }
         $element = $element->parentNode;
     }
     $kstr[] = self::$parser->get($element, "type");
     $kstr = implode("/", array_reverse($kstr));
     $level = substr_count(substr($kstr, strpos($kstr, "rootnode") + strlen("rootnode")), "/") + 1;
     attributeParser::parse($node, $parent, "areas/" . $kstr);
     self::add("areas/" . $kstr . "/level", $level . "");
     self::$parser->set("name", $name, $node);
     return true;
 }
 public static function parse($node, $parent, $key = null)
 {
     $parent = $node->parentNode;
     $name = self::$parser->get($parent, "name");
     $handlerType = self::$parser->get($node, "type");
     self::$parser->enumCheck("i:handlerType", $handlerType);
     $actions = array("actions", "rowactions", "moreactions");
     $handlerParams = self::$parser->fetch("./i:param", $node);
     $data = array("script" => self::$parser->get($node, "action"));
     //$parentNodeName = self::$parser->name($parent);
     $k = self::$parser->name($parent->parentNode) . "/" . $name . "/handlers/" . $handlerType;
     attributeParser::parse($node, $parent, $k);
     if (count($handlerParams)) {
         $params = array();
         foreach ($handlerParams as $hp) {
             self::add($k . "/params/" . self::$parser->get($hp, "name"), self::$parser->get($hp));
         }
     }
     return true;
 }
 public static function parse($node, $parent, $key = null)
 {
     $process = self::$parser->getProcess();
     $name = self::$parser->get($parent, "name");
     $type = self::$parser->get(self::$parser->container($node, "area"), "type");
     $component_name = "rootnode";
     if (isset($process["parses"][0]["areas"][$type]["tabs"])) {
         foreach ($process["parses"][0]["areas"][$type]["tabs"] as $key => $tab) {
             foreach ($tab["components"] as $cname => $c) {
                 if (substr($cname, 0, 4) == "tree") {
                     $tabid = $key;
                     break;
                 }
             }
         }
     } else {
         $tabid = 0;
     }
     attributeParser::parse($node, $parent, "areas/" . $type . "/tabs/" . $tabid . "/components/" . $name . "/" . $component_name);
     self::add("areas/" . $type . "/tabs/" . $tabid . "/components/" . $name . "/" . $component_name . "/level", "1");
     self::$parser->set("name", $component_name, $node);
     return true;
 }
 public static function parse($node, $parent, $key = null)
 {
     return attributeParser::parse($node, $parent, "options");
 }