Tool adapter for Moodle's wiki. That is just the base, without changes so after this when we syncronize you will see all the changes we made for that tool.
we use the variable 'saved' to let know the view's page that one file has been uploaded so it can be displayed the Next Activity button( in case is a Learner).
we use the variable 'save' to let the view's pageto know that there has been one file uploaded. We also noticed that in the database, in the table submissions they were not storing the number of files uploaded in the numfiles field, so we fix that so we could use that parameter in our outputs function.
we change to 1 the 'Next' variable if we upload a new entry in the Glossary. We pass that variable to view.php page so there we can display the Next Activity button if next=1.
we get the 'Next' variable and if is equal to 1 we desplay the Next Activity button (it means that we have done a comment to one entry so we can continue with the sequence)
hide Moodle's headers and footers if working inide LAMS's sequence. We also pass a variable called Next to the Comments.php page to be able to display LAMS's navigation buttons (if next=1 we tell to comments.php that a comment to one entry has been done).
New clone function for LAMS, now we copy all useful tables, not just the forum table. We changed the import and export function for LAMS too to be able to get the information from posts and discussion's tables