承接 milkyway-multimedia/ss-behaviours 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

milkyway-multimedia/ss-behaviours

Composer 安装命令:

composer require milkyway-multimedia/ss-behaviours

包简介

Add a hash or slug to any DataObject in Silverstripe

README 文档

README

Build Status

Behaviours is a set of common DataExtensions and Traits to use with Silverstripe

  • Hashable: This creates a unique hash for your DataObject. This cannot be decoded, but does not rely on any field on the original DataObject. This is used mainly as a replacement for ID if you want to hide the ID from the front-end, or in the case of not needing a unique value it can be a reference to differentiate records by certain attributes (such as product options - same size, colour, etc)
  • Sluggable: This creates a slug for the DataObject. This can be decoded back to its original state. Usually used as a replacement for ID with URLs.

Install

Add the following to your composer.json file


    "require"          : {
		"milkyway-multimedia/ss-behaviors": "dev-master"
	},

Add the following in your YAML config for objects you would like to hash/slug


YourDataObject:
  extensions:
    - Milkyway\SS\Behaviours\Extensions\Hashable

License

  • MIT

Version

  • 0.2 (Alpha)

Contact

Milkyway Multimedia

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-12-09