public function getProcessedTemplate(array $variables = array(), $usePreprocess = false) { $processor = new Varien_Filter_Template(); if (!$this->_preprocessFlag) { $variables['this'] = $this; } $processor->setIncludeProcessor(array($this, 'getInclude'))->setVariables($variables); if ($usePreprocess && $this->isPreprocessed()) { return $processor->filter($this->getTemplateTextPreprocessed()); } return $processor->filter($this->getTemplateText()); }