Skip to content
Commit ccd47dcb authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic
Browse files

Bug 1886614: framework.json.php refactoring

refactoring the file that saves a framework to DB

- added all code to check and format the input into one function format_input_framework that will:
 get the $_POST parameters needed
 set types to fileds
 get priorities of the standards and elements to know the order they have in the form
 save the DB ids of standards and elements if they are included in the form input data, so later we can check which DB records need to be removed

- addedd a function remove_deleted_items_from_DB to deal with removing records from the DB

behatnotneeded

Change-Id: Ied46c620906e2833df3be21a08f7ffe7e6ac4193
parent 0dab74eb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment