public function FindStudReport($value) { $utmf = Abricos::TextParser(true); $value = $utmf->Parser($value); $row = RecordBookQuery::FindStudReport($this->db, $value); $res = new stdClass(); $res->curentGroup = $this->models->InstanceClass('ReportItem', $row); if (isset($row['listgroup'])) { $arGroup = explode(',', $row['listgroup']); $listGr = $this->models->InstanceClass('GroupList'); foreach ($arGroup as $value) { $rowGr = RecordBookQuery::GroupItem($this->db, $value); $listGr->Add($this->models->InstanceClass('GroupItem', $rowGr)); } $res->oldGroup = $listGr; } return $res; }