Class CompetitorAffilListFormatter

Description

Formats QueryResults for use in outside documentation.

This class handles formatting list of competitors into the various layouts needed for people assembling a printed program offering choices such as tabbed delimited or pre-formatted text.

Located in /include/classes/printed-formatting/CompetitorAffilListFormatter.inc (line 20)

ListFormatter
   |
   --CompetitorAffilListFormatter
Method Summary
 CompetitorAffilListFormatter CompetitorAffilListFormatter ()
 string _printText (array $arr, array $context)
 void _processSectionLookback (mixed $vals, mixed $type, mixed &$sectionVal, [mixed $context = array()])
Variables
Methods
Constructor CompetitorAffilListFormatter (line 21)
CompetitorAffilListFormatter CompetitorAffilListFormatter ()
_printText (line 50)

Implement the Textual formatter

Generates the pre formatted text list, collapse identical leaders does not print affiliation if belongs to current context

  • return: the next row fo the list
string _printText (array $arr, array $context)
  • array $arr: the current row from the DB
  • array $context: Tracks the last leader seen for collapsing checks

Redefinition of:
ListFormatter::_printText()
Abstract function, must be overrided for text output
_processSectionLookback (line 36)

Outputs a new section header, updating the current section

void _processSectionLookback (mixed $vals, mixed $type, mixed &$sectionVal, [mixed $context = array()])

Inherited Methods

Inherited From ListFormatter

 ListFormatter::ListFormatter()
 ListFormatter::formatAsTabbed()
 ListFormatter::formatAsText()
 ListFormatter::_format()
 ListFormatter::_printTabbed()
 ListFormatter::_printText()
 ListFormatter::_usesRowLookback()
 ListFormatter::_usesSectionLookback()

Documentation generated on Tue, 25 Apr 2006 13:00:25 -0400 by phpDocumentor 1.3.0RC3