/** * @inheritdoc */ public function prepareFileContents() { if ($this->_contentData['type'] != 'xml') { Mage::throwException("Wrong content type! It should be xml."); } parent::prepareFileContents(); $contents = $this->selectXmlFileType(); $this->_content .= $contents; }
/** * @inheritdoc */ public function prepareFileContents() { if ($this->_contentData['type'] != 'php') { Mage::throwException("Wrong content type! It should be php."); } parent::prepareFileContents(); $className = $this->_contentData['className']; $extends = $this->_contentData['extends']; $implements = $this->_contentData['implements']; $contents = $this->_contentData['contents']; $this->_content .= $this->_createClassWrapper($className, $contents, $extends, $implements); }