[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/resources/src/jquery/ -> jquery.tablesorter.js (summary)

TableSorter for MediaWiki Written 2011 Leo Koppelkamm Based on tablesorter.com plugin, written (c) 2007 Christian Bach.

File Size: 1161 lines (33 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 25 functions

  getParserById()
  getElementSortKey()
  detectParserForColumn()
  buildParserCache()
  buildCache()
  appendToTable()
  emulateTHeadAndFoot()
  buildHeaders()
  setHeadersOrder()
  isValueInArray()
  uniqueElements()
  setHeadersCss()
  sortText()
  sortTextDesc()
  multisort()
  buildTransformTable()
  buildDateTable()
  explodeRowspans()
  resortCells()
  filterfunc()
  fixTdCellIndex()
  buildCollationTable()
  cacheRegexs()
  convertSortList()
  setupForFirstSort()

Functions
Functions that are not part of a class:

getParserById( name )   X-Ref

author: Christian Bach/[email protected]

getElementSortKey( node )   X-Ref
No description

detectParserForColumn( table, rows, cellIndex )   X-Ref
No description

buildParserCache( table, $headers )   X-Ref
No description

buildCache( table )   X-Ref
No description

appendToTable( table, cache )   X-Ref
No description

emulateTHeadAndFoot( $table )   X-Ref
Find all header rows in a thead-less table and put them in a <thead> tag.
This only treats a row as a header row if it contains only <th>s (no <td>s)
and if it is preceded entirely by header rows. The algorithm stops when
it encounters the first non-header row.

After this, it will look at all rows at the bottom for footer rows
And place these in a tfoot using similar rules.
param: $table jQuery object for a <table>

buildHeaders( table, msg )   X-Ref
No description

setHeadersOrder( $headers, sortList, headerToColumns )   X-Ref
Sets the sort count of the columns that are not affected by the sorting to have them sorted
in default (ascending) order when their header cell is clicked the next time.

param: {jQuery} $headers
param: {Number[][]} sortList
param: {Number[][]} headerToColumns

isValueInArray( v, a )   X-Ref
No description

uniqueElements( array )   X-Ref
No description

setHeadersCss( table, $headers, list, css, msg, columnToHeader )   X-Ref
No description

sortText( a, b )   X-Ref
No description

sortTextDesc( a, b )   X-Ref
No description

multisort( table, sortList, cache )   X-Ref
No description

buildTransformTable()   X-Ref
No description

buildDateTable()   X-Ref
No description

explodeRowspans( $table )   X-Ref
Replace all rowspanned cells in the body with clones in each row, so sorting
need not worry about them.

param: $table jQuery object for a <table>

resortCells()   X-Ref
No description

filterfunc()   X-Ref
No description

fixTdCellIndex()   X-Ref
No description

buildCollationTable()   X-Ref
No description

cacheRegexs()   X-Ref
No description

convertSortList( sortObjects )   X-Ref
Converts sort objects [ { Integer: String }, ... ] to the internally used nested array
structure [ [ Integer , Integer ], ... ]

param: sortObjects {Array} List of sort objects.
return: {Array} List of internal sort definitions.

setupForFirstSort()   X-Ref

param: $tables {jQuery}
param: settings {Object} (optional)



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1