Changeset 7640 for trunk/src/index.php
- Timestamp:
- Mar 31, 2010, 10:46:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/index.php
r7639 r7640 31 31 echo $kml->toString(); 32 32 33 // Now let's try reading from files and parsing the data in the files. 34 // First off, we create a new KMLFile object 35 $kmlFile = new KMLFile(); 36 33 37 // Let's try to read the node location file 34 38 $nodeLocation = new FileHandler($config['node_location_file']); 35 // TODO: Needs parsing 39 $kmlFile->parseLocationFile($nodeLocation->getFile()); 40 echo $kmlFile->toString(); 36 41 37 42 // Let's try to read the node status file 38 43 $nodeStatus = new FileHandler($config['node_status_file']); 39 $kmlFile = KMLFile::parseFile($nodeStatus->getFile());44 $kmlFile->parseStatusFile($nodeStatus->getFile()); 40 45 /* 41 46 * TODO: Needs better parsing of the file now we have two seperate
Note:
See TracChangeset
for help on using the changeset viewer.