示例#1
0
 public function getMap($module, $class, $className)
 {
     if (!isset($this->xmlMaps[$className])) {
         $classNameMap = $module . "/models/map/" . $class . '.xml';
         $file = Manager::getAppPath("modules/" . $classNameMap);
         $xmlTree = new MXMLTree($file);
         $tree = $xmlTree->getTree();
         $xml = $xmlTree->getXMLTreeElement($tree);
         $this->xmlMaps[$className] = $xml;
     }
     return $this->xmlMaps[$className];
 }
示例#2
0
 public function __construct($title = '', $file, $colTitle = null)
 {
     $xmlTree = new MXMLTree($file);
     $array = $xmlTree->getXMLTreeAsArray();
     parent::__construct($title, $array, $colTitle);
 }