silverstripe/silverstripe-blog — pull request #114 by tractorcow (2014-02-28 04:09:53+00:00)
Title: BUG Rewrite of Blog Tag calculation and handling

This rewrite resolves quite a few inconsistencies and issues in the tagging system, and attemps to update the Blog module to use more modern Silverstripe conventions. It includes mostly bugfixes, but also PHPDoc, code quality issues, and incorrect behaviour.

Notes below:

BUG Fixed parsing of spaces and other whitespace in tag clouds. Fixes #59
BUG Fixed incorrect encoding of SelectedAuthor and SelectedTag; Now correctly cast for templates using the `cast` config, not within filtering.
BUG Fixed TagCloudWidget.popularities config from being incorrectly accessed as a static property
BUG Fixed TagCloudWidget::getCMSFields triggering extend('updateCMSFields') twice
BUG Fixed TagCloudWidget::getTagsCollection discarding tag label capitalisation
BUG Fixed TagCloudWidget::getTagsCollection not correctly respecting minimum tag counts (as well as maximum tag counts) when determining the popularity CSS class to assign.
Test cases for TagCloudWidget
API BlogEntry::TagNames now safely extracts tags from a blog entry as an associative 'lowercase' => 'Entered Tag' format
PHPDoc fixes
Removed trailing '?>' tags from PHP files