Commit 2dab1b1bf6cbe1ae6ee7b1cc62ceb8cb29af46b6

Authored by Elena.Budnik
1 parent e7dc265f

change input args order for addTask

Showing 2 changed files with 8 additions and 7 deletions   Show diff stats
php/classes/AmdaAction.php
... ... @@ -762,7 +762,7 @@ class AmdaAction
762 762 case 'myDataParam' :
763 763 case 'derivedParam' :
764 764 if ($obj->nodeType == 'derivedParam' && $this->amdaStat->success)
765   - $this->amdaStat->addTask('create', $this->user, null);
  765 + $this->amdaStat->addTask($this->user, 'create', null);
766 766 $objectMgr = new DerivedParamMgr($obj->nodeType);
767 767 break;
768 768 case 'timeTable' :
... ... @@ -976,7 +976,7 @@ class AmdaAction
976 976 public function merge($obj)
977 977 {
978 978 if ($this->amdaStat->success)
979   - $this->amdaStat->addTask('ttoper', $this->user, null);
  979 + $this->amdaStat->addTask( $this->user, 'ttoper', null);
980 980  
981 981 $objectMgr = new TimeTableMgr();
982 982  
... ... @@ -990,7 +990,7 @@ class AmdaAction
990 990 public function intersect($obj)
991 991 {
992 992 if ($this->amdaStat->success)
993   - $this->amdaStat->addTask('ttoper', $this->user, null);
  993 + $this->amdaStat->addTask($this->user, 'ttoper', null);
994 994  
995 995 $objectMgr = new TimeTableMgr();
996 996 $result = $objectMgr -> intersect($obj);
... ... @@ -1159,7 +1159,7 @@ class AmdaAction
1159 1159 public function getHstImagesUrl($o)
1160 1160 {
1161 1161 if ($this->amdaStat->success)
1162   - $this->amdaStat->addTask('images', $this->user, null);
  1162 + $this->amdaStat->addTask($this->user, 'images', null);
1163 1163  
1164 1164 $myHstMgr = new HstMgr();
1165 1165 $res = $myHstMgr->getImagesUrl($o->startTime, $o->stopTime, $o->planet);
... ... @@ -1171,7 +1171,7 @@ class AmdaAction
1171 1171 public function getAPISImagesUrl($o)
1172 1172 {
1173 1173 if ($this->amdaStat->success)
1174   - $this->amdaStat->addTask('images', $this->user, null);
  1174 + $this->amdaStat->addTask($this->user, 'images', null);
1175 1175  
1176 1176 $apisMgr = new APISMgr();
1177 1177 $res = $apisMgr->get($o->target, $o->startTime, $o->stopTime, $o->datasets);
... ...
php/uploadFile.php
... ... @@ -372,8 +372,9 @@
372 372 {
373 373 $fileMgr = new FilesMgr();
374 374 $amdaStat = new AmdaStats($_POST['sessionID']);
375   - if ($amdaStat->success)
376   - $amdaStat->addTask('upload', $_POST['sessionID'], null);
  375 + if ($amdaStat->success) {
  376 + $amdaStat->addTask( $_POST['sessionID'], 'upload', null);
  377 + }
377 378 }
378 379 // Time Table or Catalog
379 380 else
... ...