Class OutputFormatter

Description

Output formatter object that controls output of other objects with sprintf statements

Located in /inc/formslib/outputformatter.php (line 23)


	
			
Variable Summary
string $format
Method Summary
OutputFormatter OutputFormatter (string $format, mixed $fields)
string format (array $data)
Variables
string $format (line 25)
  • var: sprintf format string for this formatter
mixed $formatfields (line 27)
  • var: field name or array of names (keys to $data) to format using this formatter
Methods
Constructor OutputFormatter (line 35)

Create a new OutputFormatter object

OutputFormatter OutputFormatter (string $format, mixed $fields)
  • string $format: see $this->format
  • mixed $fields: string or array, see $this->fields
format (line 46)

Format the data

  • return: formatted data
string format (array $data)
  • array $data: data to be formatted, $data[$formatfields[$i]]

Documentation generated on Tue, 06 Mar 2007 10:01:47 +0000 by phpDocumentor 1.3.0