public function loadAll($id, $langId) { $formData = $this->populate($id, $langId); $oRespondent = new FormRespondent(); $oSections = new FormSectionObject(); $sectionsData = $oSections->getSections($id, $langId); $respondentData = $oRespondent->loadAll($id); $formData['sections'] = $sectionsData; $formData['respondent'] = $respondentData; return $formData; }
public function loadAll($id, $langId) { $formData = $this->populate($this->_id, $this->_langId); $oRespondent = new FormRespondent(); $oSections = new FormSectionObject(); $sectionsData = $oSections->show($this->_id, $this->_langId); // $respondentData = $oRespondent->loadAll($this->_id); $this->_formdata['form'] = $formData; $this->_formdata['sections'] = $sectionsData; // $this->_formdata['respondent'] = $respondentData; }