pluf / assort
A pluf 模块,用于管理分类和标签
6.0.6
2020-03-15 11:42 UTC
- 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-09-17 03:46:41 UTC
README
这是一个 Pluf 模块,提供与分类和标签相关的工具。它可以用来管理(添加、删除、更新、搜索)分类和标签。
实体
本模块包含以下两个重要实体
- Category (Assort_Category)
- Tag (Assort_Tag)
分类
分类的 PHP 类名为 Assort_Category。分类具有以下属性
- 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)
分类应具有(名称,父级)这对值的唯一性。
标签
标签的 PHP 类名为 Assort_Tag。标签具有以下属性
- id (long)
- name (string)
- creation_dtime (datetime)
- modif_dtime (datetime)
- description (string)
标签应具有名称的唯一性。
API
本模块添加以下 API
分类 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]
标签 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]
其他功能
本模块中定义以下函数并可使用
Assort_Shortcuts_GetTagByNameOr404($name)
返回具有给定名称的 Assort_Tag。如果没有给定名称的标签,则抛出异常(带有 HTTP 状态码 404)。