pluf / assort
A pluf module to manage categories and tags
- dev-master
- 6.0.6
- 6.0.5
- 5.13.1
- 5.13.0
- 5.12.7
- 5.12.6
- 5.12.4
- 5.12.3
- 5.12.2
- 5.12.1
- 5.12.0
- 5.11.16
- 5.11.15
- 5.11.14
- 5.11.13
- 5.11.12
- 5.11.11
- 5.11.10
- 5.11.9
- 5.11.8
- 5.11.7
- 5.11.6
- 5.11.5
- 5.11.4
- 5.11.3
- 5.11.2
- 5.11.1
- 5.11.0
- 5.10.2
- 5.10.1
- 5.10.0
- 5.9.6
- 5.9.5
- 5.9.4
- 5.9.3
- 5.9.1
- 5.9.0
- 5.8.6
- 5.8.5
- 5.8.4
- 5.8.3
- 5.8.2
- 5.8.1
- 5.8.0
- 5.7.2
- 5.7.1
- 5.7.0
- 5.6.0
- 5.5.3
- 5.5.2
- 5.5.1
- 5.5.0
- 5.4.0
- 5.3.0
- 5.2.0
- 5.1.2
- 5.1.1
- 5.1.0
- 5.0.1
- 5.0.0
- 4.0.15
- 4.0.14
- 4.0.13
- 4.0.12
- 4.0.11
- 4.0.10
- 4.0.9
- 4.0.7
- 4.0.6
- 4.0.5
- 4.0.4
- 4.0.3
- 4.0.2
- 4.0.1
- 3.0.14
- 3.0.13
- 3.0.12
- 3.0.11
- 3.0.10
- 3.0.8
- 3.0.7
- 3.0.6
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.0
- 2.1.10
- 2.1.8
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.3
- 2.1.2
- dev-develop
This package is auto-updated.
Last update: 2024-12-17 04:16:47 UTC
README
This is a Pluf module to provide related tools to categories and tags. It can be used to manage (add, remove, update, search) categories and tags.
Entities
This module contains two important entities:
- Category (Assort_Category)
- Tag (Assort_Tag)
Category
PHP class of category is named Assort_Category. Category has following properties:
- id (long)
- name (string)
- creation_dtime (datetime)
- modif_dtime (datetime)
- description (string)
- parent (FK from Assort_Category)
- content (FK from CMS_Content)
- thumbnail (FK from CMS_Content)
Categories should have unique values for pair (name, parent).
Tag
PHP class of tag is named Assort_Tag. Tag has following properties:
- id (long)
- name (string)
- creation_dtime (datetime)
- modif_dtime (datetime)
- description (string)
Tags should have unique values for name.
API
This module adds following API:
Category API
- GET: ../category/find [lists categories]
- PUSH: ../category/new [adds new category]
- GET: ../category/{id} [gets information of a category]
- PUSH ../category/{id} [updates information of a category]
- DELETE ../category/{id} [deletes a category]
Tag API
- GET: ../tag/find [lists tags]
- PUSH: ../tag/new [adds new tag]
- GET: ../tag/{id} [gets information of a tag]
- PUSH ../tag/{id} [updates information of a tag]
- DELETE ../tag/{id} [deletes a tag]
Other features
Following function in this module is defined and could be used:
Assort_Shortcuts_GetTagByNameOr404($name)
Returns Assort_Tag with given name. Throws an exception (with http code 404) if there is no tag with given name.