Source for file outputformatter.php
Documentation is available at outputformatter.php
* Output formatter object that controls output of other objects with sprintf statements
* @author Stuart Prescott
* @copyright Copyright Stuart Prescott
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @subpackage FormsLibrary
/** Load ancillary functions */
require_once 'inc/typeinfo.php';
* Output formatter object that controls output of other objects with sprintf statements
* @subpackage FormsLibrary
/** @var string sprintf format string for this formatter */
/** @var mixed field name or array of names (keys to $data) to format using this formatter */
* Create a new OutputFormatter object
* @param string $format see $this->format
* @param mixed $fields string or array, see $this->fields
* @param array $data data to be formatted, $data[$formatfields[$i]]
* @return string formatted data
#echo "Formatting string";
foreach ($fields as $v) {
$val = isset
($data[$v]) ?
xssqw($data[$v]) :
'';
if ($val !==
'' &&
$val !==
NULL) $s[] =
$val;
$val =
$v->format($data);
if ($val !==
'' &&
$val !==
NULL) $s[] =
$val;
} // class OutputFormatter
Documentation generated on Tue, 06 Mar 2007 10:01:47 +0000 by phpDocumentor 1.3.0