定制 pluf/assort 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pluf/assort

Composer 安装命令:

composer require pluf/assort

包简介

A pluf module to manage categories and tags

README 文档

README

Build Status

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.

统计信息

  • 总下载量: 363
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-06-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固