Example #1
0
 public function action_main()
 {
     $list = modelsData::dataListModel(SessionService::getInstance()->get('userName'));
     $lists = array_slice($list, 2);
     sort($lists);
     $models = array();
     foreach ($lists as $key => $list) {
         $models[$key]['name'] = $list;
         $models[$key]['conf'] = $this->checkStatus('conf', $list);
         $models[$key]['res'] = $this->checkStatus('res', $list);
         $models[$key]['progress'] = $this->checkStatus('progress', $list);
         $models[$key]['progressId'] = $this->getProcessId($list);
     }
     return ['list' => $models, 'activeModel' => SessionService::getInstance()->get('modelName')];
 }