dokufreaks/plugin-tag — pull request #58 by YoBoY (2012-03-07 14:52:07+00:00)
Title: Refactor and rewrite of helper.php + corrections

/!\ can be broken on old Dokuwiki versions, needs testing!!!
Detailled changes:
- new _loadTagIndex() function to load the index.idx file from indexdir and generate it from metadatas if missing
- rewrite of the _generateTagIndex() function
- adding a _getSubjectMetadata($id) function to load this metadata, and always return an array where needed
- rewrite of the _saveIndex() function to add some cleaning on the topic_idx array first
- use of the _getSubjectMetadata() in td() function to simplify it
- refactoring of the getTopic() function
- adding _notVisible() function to test the visibility of a page
- rewrite of the tagOccurences() function
- refactoring of the _updateTagIndex() function
- added comment "(!! not used in the plugin)" on functions that seem useless, need confirmation before deletion (_refreshTagIndex, _importTagIndex, _numToID, _notEmpty)
- on tag metadata rendering, separation by page ID of the 'tags memory' permeting more than one line of tags to fix border effects with the topic page list generation when it renders lot of pages metadata at once.