The EuroCMS Trash Module
Every module can dump their Files and content here.
DB structure
| trash_id | domain_id | user_id | group_id | name | table | table_name | table_id | data | trash_date | retention | user_lock | status |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | 1 | 1 | File.png {fancybox popup} | files | file_id | 2 | {DATAJSON} | {epoch date} | 30d | 1 | |
| 2 | 1 | 1 | 1 | /policy-privacy - {fancybox popup} | pages | page_id | 4 | {Previous Table Information} | {epoch date} | 30d | 2 |
- retention: how long files are allowed to remain before being permanently deleted.
This setting is saved in the configure module.
Requested permission
configure:
item: trash
value: numeric(30days,30months,3years, disabled.)
Permissions
| name | description | CoC |
|---|---|---|
| trash_add | The ability to add items to the trash | |
| trash_delete | The ability to delete items in the trash | |
| trash_retention | The ability to set a trash retention policy | |