/** * Helper to get the class add/edit form controller response. * * @param array $objectClass * * @return XenForo_ControllerResponse_View */ protected function _getObjectClassAddEditResponse(array $objectClass) { $choices = array('class_id' => ThemeHouse_FirstColReports_Model_Class::getClassTitles()); $viewParams = array('choices' => $choices, 'objectClass' => $objectClass); if ($objectClass['object_class_id']) { $viewParams['canDeleteObjectClass'] = $this->_getObjectClassModel()->canDeleteObjectClass($objectClass); } return $this->responseView('ThemeHouse_Objects_ViewPublic_ObjectClass_Edit', 'th_object_class_edit_objects', $viewParams); }
/** * Helper to get the class add/edit form controller response. * * @param array $objectClass * * @return XenForo_ControllerResponse_View */ protected function _getObjectClassAddEditResponse(array $objectClass) { $choices = array('class_id' => ThemeHouse_FirstColReports_Model_Class::getClassTitles()); $viewParams = array('choices' => $choices, 'objectClass' => $objectClass); return $this->responseView('ThemeHouse_Objects_ViewAdmin_ObjectClass_Edit', 'th_object_class_edit_objects', $viewParams); }