k3dbe/propel-taggable-behavior 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

k3dbe/propel-taggable-behavior

Composer 安装命令:

composer require k3dbe/propel-taggable-behavior

包简介

Add tags functionality to the objects.

README 文档

README

Installation

Download TaggableBehavior.php and put it somewhere.

propel.behavior.taggable.class = path.to.taggable.behavior

If you are using composer then just add:

{
    "require": {
        "k3dbe/propel-taggable-behavior": "dev-master"
    }
}

The ini-configuration would be

propel.behavior.taggable.class = vendor.k3dbe.src.propel-taggable-behavior.src.TaggableBehavior

Usage

Behavior creates two persistent tables:

  • tag (id, name)
  • %table%_tag

Add to schema.xml:

<behavior name="taggable" />

Behavior will add several methods to the Model:

public function addTags($tags, PropelPDO $con = null)
public function removeTags($tags, PropelPDO $con = null)
public function addTag(Tag $tag)
public function removeTag(Tag $tag)
public function removeAllTags(PropelPDO $con = null)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-28