LICENSE.txt in rubbish_code-0.1.0 vs LICENSE.txt in rubbish_code-0.1.1
- old
+ new
@@ -1,37 +1,37 @@
MIT License
Copyright (c) 2023 NullExp
-Класс TabStudentsController представляет собой контроллер для работы с интерфейсом взаимодействия с объектами типа Student.
+The TabStudentsController class is a controller for working with the interface for interacting with objects of the Student type.
-Методы класса:
+Methods of the class:
-1. initialize(view) - конструктор класса, принимает объект представления (view) и создает пустой объект типа
-DataListStudentShort, которому присваивается метод add_listener с аргументом view, в результате чего представление
-устанавливается в качестве слушателя событий изменения состояния данных (data_list).
-2. on_view_created - метод, инициализирующий объект типа StudentRepository, который используется для взаимодействия
-с базой данных, и при возникновении ошибки подключения к базе выводит диалоговое окно с сообщением об ошибке.
-3. show_view - метод, отображающий основное окно приложения.
-4. show_modal_add - метод, отображающий модальное окно для создания новой записи о студенте.
-Создает экземпляр контроллера StudentInputFormControllerCreate и передает ему ссылку на текущий контроллер,
-создает объект типа StudentInputForm и передает ему ссылку на контроллер. После чего отображает модальное окно.
-5. show_modal_edit(current_page, per_page, selected_row) - метод, отображающий модальное окно для
-редактирования записи о студенте. Принимает значения текущей страницы (current_page), количества записей на странице
-(per_page) и выбранной строки (selected_row). Вычисляет номер выбранного студента и выбирает его id из
-объекта DataListStudentShort, после чего передает его в контроллер StudentInputFormControllerEdit, создает объект типа
-StudentInputForm и передает ему ссылку на контроллер. После чего отображает модальное окно.
-6. delete_selected(current_page, per_page, selected_row) - метод, удаляющий выбранную запись о студенте.
-Принимает значения текущей страницы (current_page), количества записей на странице (per_page)
-и выбранной строки (selected_row). Вычисляет номер выбранного студента и выбирает его id из объекта DataListStudentShort,
-после чего удаляет запись с помощью метода remove_student из объекта типа StudentRepository.
-7. refresh_data(page, per_page) - метод, обновляющий данные в списке студентов. Принимает значения
-текущей страницы (page) и количества записей на странице (per_page).
-Вызывает метод типа StudentRepository paginated_short_students для получения данных в формате объекта DataListStudentShort.
-Обновляет информацию о количестве студентов с помощью метода update_student_count представления.
+1. initialize(view) - constructor of the class, takes a view object and creates an empty object of the type
+DataListStudentShort, which is assigned the add_listener method with the view argument, as a result of which the view
+is set as a listener for data state change events (data_list).
+2. on_view_created is a method that initializes an object of the StudentRepository type, which is used for interaction
+with the database, and if an error occurs connecting to the database displays a dialog box with an error message.
+3. show_view is a method that displays the main application window.
+4. show_modal_add is a method that displays a modal window for creating a new student record.
+Creates an instance of the StudentInputFormControllerCreate controller and passes it a reference to the current controller,
+creates an object of the StudentInputForm type and passes it a reference to the controller. Then it displays the modal window.
+5. show_modal_edit(current_page, per_page, selected_row) is a method that displays the modal window for
+editing a student record. Takes the values of the current page (current_page), the number of records on the page
+(per_page) and the selected row (selected_row). Calculates the number of the selected student and selects his id from
+the DataListStudentShort object, then passes it to the StudentInputFormControllerEdit controller, creates an object of the type
+StudentInputForm and passes it a link to the controller. After that, it displays a modal window.
+6. delete_selected(current_page, per_page, selected_row) is a method that deletes the selected student record.
+Takes the values of the current page (current_page), the number of records on the page (per_page)
+and the selected row (selected_row). Calculates the number of the selected student and selects his id from the DataListStudentShort object,
+then deletes the record using the remove_student method from the StudentRepository object.
+7. refresh_data(page, per_page) is a method that updates the data in the list of students. Takes the values
+of the current page (page) and the number of entries on the page (per_page).
+Calls a method of the StudentRepository paginated_short_students type to get data in the DataListStudentShort object format.
+Updates information about the number of students using the update_student_count method of the view.
-Контроллер Student_Input_Form_Controller_Edit и Student_Input_Form_Controller_Create представляют собой формы
-для изменения и создания студентов в базу данных, соотвественно.
+The Student_Input_Form_Controller_Edit controller and Student_Input_Form_Controller_Create are forms
+for modifying and creating students into the database, respectively.
-Модели student, student_base и student_short представляет собой модель студента с различными полями и методами
-для установки, получения и обработки информации. Student_base - супер класс,
-а student_short - короктая информация о студенте.
+The student, student_base and student_short models are a student model with various fields and methods
+for setting, receiving and processing information. Student_base - super class,
+and student_short is the short information about the student.