/** * Parse a string; mainly used for output filter. * @param string $String * @param mixed $Object Object related to the string in some way * @param string $Format The string-formatter that will parse the string. * @param string $FormatPurpose Use the FORMAT_STRING_FOR_DISPLAY constant. * @return string */ function FormatString($String, $Object, $Format, $FormatPurpose) { $sReturn = $this->StringManipulator->Parse($String, $Object, $Format, $FormatPurpose); // Now pass the string through global formatters $sReturn = $this->StringManipulator->GlobalParse($sReturn, $Object, $FormatPurpose); return $sReturn; }