Changeset 765 for branches/0.4/web/addons/job_monarch/libtoga.php
- Timestamp:
- 03/28/13 12:21:53 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.4/web/addons/job_monarch/libtoga.php
r764 r765 1362 1362 function ClusterImage( $data, $clustername ) 1363 1363 { 1364 $this->dataget 1365 $this->data = $data;1366 $this->clustername 1367 $this->filters 1368 $this->size = 's';1364 $this->dataget = new DataGatherer( $clustername ); 1365 $this->data = $data; 1366 $this->clustername = $clustername; 1367 $this->filters = array(); 1368 $this->size = 's'; 1369 1369 $this->width = 0; 1370 $this->height 1371 $this->output 1370 $this->height = 0; 1371 $this->output = 1; 1372 1372 $this->jobs = null; 1373 1373 $this->nodes = null; 1374 $this->parsed = false; 1374 1375 } 1375 1376 … … 1394 1395 $this->output = 0; 1395 1396 } 1397 function checkParse() 1398 { 1399 if( $this->parsed == false ) 1400 { 1401 $this->dataget->parseXML( $this->data ); 1402 $this->parsed = true; 1403 } 1404 } 1396 1405 function getJobs() 1397 1406 { 1398 1407 if( $this->jobs == null ) 1399 1408 { 1409 $this->checkParse(); 1400 1410 $mydatag = $this->dataget; 1401 $mydatag->parseXML( $this->data );1402 1411 $this->jobs = $mydatag->getJobs(); 1403 1412 } … … 1413 1422 if( $this->nodes== null ) 1414 1423 { 1424 $this->checkParse(); 1415 1425 $mydatag = $this->dataget; 1416 $mydatag->parseXML( $this->data );1417 1426 $this->nodes = $mydatag->getNodes(); 1418 1427 }
Note: See TracChangeset
for help on using the changeset viewer.