public function text_format($format) { return preg_replace_callback('%\\{(\\w)\\}%iu', array($this, 'text_format_callback'), $format); }