Changeset 7952
- Timestamp:
- 03/18/08 18:23:49 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfPropelActAsTaggableBehaviorPlugin/trunk/lib/model/Tag.php
r4076 r7952 4 4 * Subclass for representing a row from the 'tag' table. 5 5 * 6 * 6 * 7 7 * 8 8 * @package plugins.sfPropelActAsTaggableBehaviorPlugin.lib.model 9 */ 9 */ 10 10 class Tag extends BaseTag 11 11 { 12 public function __toString() 13 { 14 return $this->getName(); 15 } 16 12 17 public function getModelsTaggedWith() 13 18 { 14 19 return TagPeer::getModelsTaggedWith($this->getName()); 15 20 } 16 21 17 22 public function getRelated($options = array()) 18 23 { 19 24 return TagPeer::getRelatedTags($this->getName()); 20 25 } 21 26 22 27 public function getTaggedWith($options = array()) 23 28 { 24 29 return TagPeer::getTaggedWith($this->getName()); 25 30 } 26 31 } plugins/sfPropelActAsTaggableBehaviorPlugin/trunk/lib/sfPropelActAsTaggableToolkit.class.php
r7475 r7952 90 90 $i = 0; 91 91 92 foreach ( $tags as $tag)92 foreach ($tags as $tag) 93 93 { 94 94 $result .= '"'.$tag.'"'; … … 157 157 $power = 0.7; 158 158 159 if ( count($tag_cloud) > 0)159 if (count($tag_cloud) > 0) 160 160 { 161 161 $max_count = max($tag_cloud);

