Commit 469237a5275e5b655f40afef80885cee110077ef

Authored by Elena.Budnik
1 parent 06ac5394

base.xml xml:id was repalaced by id

php/classes/BaseManager.php
... ... @@ -507,21 +507,20 @@ class BaseManager {
507 507  
508 508 public function getStartStop($id)
509 509 {
510   - $vi = $this->baseDom->getElementById($id);
511   - // Can't read newly created ID attribute why??? Need to reload DOM XML
512   - if ($vi == null)
513   - {
514   - $this->baseDom->load($this->baseDomName);
515   - $vi = $this->baseDom->getElementById($id);
516   - }
517   -
518   - if ($vi == null)
519   - return "nodata";
520   -
  510 + $this->baseDom->load($this->baseDomName);
  511 + $xpath = new DOMXpath($this->baseDom);
  512 +
  513 + $vis = $xpath->query("//vi[@id=".$id."]");
  514 +
  515 + if ($vis->length == 0)
  516 + return "nodata";
  517 +
  518 + $vi = $vis->item(0);
  519 +
521 520 $start = $vi->getAttribute("start");
522 521 $stop = $vi->getAttribute("stop");
523 522  
524   - return date("Y-m-d", $start)."T".date("H:i", $start)."-".date("Y-m-d", $stop)."T".date("H:i", $stop);
  523 + return date("Y-m-d", $start)."T".date("H:i:s", $start)."-".date("Y-m-d", $stop)."T".date("H:i:s", $stop);
525 524 }
526 525  
527 526  
... ...
php/classes/DerivedParamMgr.php
... ... @@ -151,8 +151,7 @@
151 151 if (file_exists(USERWSDIR.'Alias.xml')) {
152 152 $p->buildchain = $this->resetAlias($p->buildchain);
153 153 }
154   - // switch between myData and Derived
155   - $this -> resFileName = USERWORKINGDIR.$this->id.'.res';
  154 + // switch between myData and Derived
156 155 $this -> createObjectDescription($p);
157 156 $this -> addToContent($p, $folder);
158 157 return array('id' => $this->id, 'info' => $p->buildchain);
... ...
php/classes/RequestMgr.php
... ... @@ -48,18 +48,10 @@ class RequestMgr extends AmdaObjectMgr {
48 48 $this->id_prefix = 'cond_';
49 49 $this->attributes = array('name' => '');
50 50 //, 'timestep' => '', 'datagap' => '', 'buildchain' => '',
51   - //'StartTime' => '', 'TimeInt' => '');
  51 + // 'StartTime' => '', 'TimeInt' => '');
52 52 $this->optionalAttributes = array();
53 53 }
54   -/*
55   - if (file_exists(paramListXml))
56   - $this->paramsWithoutCode = true;
57   -
58   - if (file_exists(spectraXml))
59   - $this->spectraParams = true;
60   -*/
61   -
62   -
  54 +
63 55 if (!file_exists($this->xmlName)) {
64 56 $this->createDom();
65 57 $this->xp = new domxpath($this->contentDom);
... ...