2017 © Pedro Peláez
 

library propel-taggable-behavior

Add tags functionality to the objects.

image

smirik/propel-taggable-behavior

Add tags functionality to the objects.

  • Tuesday, November 19, 2013
  • by smirik
  • Repository
  • 1 Watchers
  • 1 Stars
  • 602 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

TaggableBehavior

Installation

Download TaggableBehavior.php and put it somewhere., (*1)

``` ini propel.behavior.taggable.class = path.to.taggable.behavior, (*2)


If you are using composer then just add: ```js { "require": { "smirik/propel-taggable-behavior": "*" } }

The ini-configuration would be ``` ini propel.behavior.taggable.class = vendor.smirik.src.propel-taggable-behavior.src.TaggableBehavior, (*3)


Usage ----- Behavior creates two persistent tables: * tags (id, category_id, name) * tags_categories (id, name) Tags are realted to tags categories. Relation field category_id is not required. Add to schema.xml: ``` xml <behavior name="taggable" />

Behavior will add several methods to the Model:, (*4)

php public function addTags($tags, $category_id = null, PropelPDO $con = null) public function removeTags($tags, $category_id = null) public function addTag(Tag $tag) public function removeTag(Tag $tag), (*5)

category_id is optional parameter., (*6)

Requirements

Credits

  • https://bitbucket.org/glorpen/taggablebehaviorbundle
  • https://github.com/vbardales/PropelTaggableBehaviorBundle

The Versions

19/11 2013

dev-master

9999999-dev

Add tags functionality to the objects.

  Sources   Download

MIT

behavior tag propel