/** * Constructor * * @param string f default NULL format string */ public function __construct($f = NULL) { // Add some default formatters $this->setFormatter('printf', PrintfFormat::getInstance()); $this->setFormatter('date', DateFormat::getInstance()); $this->setFormatter('choice', ChoiceFormat::getInstance()); $this->setFormatter('number', NumberFormat::getInstance()); $this->setFormatter('array', ArrayFormat::getInstance()); $this->setFormatter('hash', HashFormat::getInstance()); parent::__construct($f); }