Types of Student Contributions

Implementation prototype / planning



As the dev in done in 1.10, it will use the new table tiki_objects batawata created for the free tags.
An additional table tiki_contributions table:
- contribution_id (to tiki_contribution_objects)
- name

An additional table tiki_contribution_objects :
- contribution_id
- object_id (to tiki_objects)

We need to expand the table tiki_history to have 2 additionnal columns
- history_id
- type (wiki page or comment)

2 new features
- contribution
- comment history (for the first step no different feature per object type)


New files:
- contribution.php that collects or set the contribution of an object
- contribution.tpl for editing the object contributions and for displaying as a list the object contributions
- tiki-admin-include-contribution.php and its tpl that enable an admin to edit a contribution (no browsing is planned at the first level)

Update:
- tiki-history.php will show the type of contribution as a list of contribution name in the view a version or at the top at each compare screen
- tiki-history.php will be possible for each comment. Each comment will be displayed with a buttom that links to tiki-history.php
- the history configuration for a comment will be the same than the wiki history conf for the first step