public function input($filename, $content) { $this->_currentFile = $filename; return preg_replace_callback($this->_pattern, array($this, '_replace'), $content); }