~yoboy-leguesh/ubuntu-fr-doc/fix-interwiki

Viewing all changes in revision 109.

  • Committer: YoBoY
  • Date: 2012-03-18 09:44:26 UTC
  • mfrom: (107.2.4 plugin-tag2)
  • Revision ID: yoboy.leguesh@gmail.com-20120318094426-yf0ide8idblc2jap
Refactoring and rewrite of functions. Added some new internal functions.
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)

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: