Public Member Functions | |
__construct ($sourceData=null) | |
setHandler ($handler) | |
getHandler () | |
processFileData ($text) | |
addLoadedFile ($file) | |
loadFile ($file) | |
Protected Attributes | |
$_handler = '' | |
$_wsdlVariables = null | |
$_loadedFiles = array() |
Definition at line 34 of file Base.php.
__construct | ( | $ | sourceData = null |
) |
Constructor
Initializes XML for this configuration
string|Varien_Simplexml_Element | $sourceData | |
string | $sourceType |
Reimplemented from Varien_Simplexml_Config.
Reimplemented in Mage_Api_Model_Wsdl_Config.
Definition at line 45 of file Base.php.
00046 { 00047 $this->_elementClass = 'Mage_Api_Model_Wsdl_Config_Element'; 00048 parent::__construct($sourceData); 00049 }
addLoadedFile | ( | $ | file | ) |
getHandler | ( | ) |
loadFile | ( | $ | filePath | ) |
Imports XML file
string | $filePath |
Reimplemented from Varien_Simplexml_Config.
Definition at line 105 of file Base.php.
00106 { 00107 if (in_array($file, $this->_loadedFiles)) { 00108 return false; 00109 } 00110 $res = parent::loadFile($file); 00111 if ($res) { 00112 $this->addLoadedFile($file); 00113 } 00114 return $this; 00115 }
processFileData | ( | $ | text | ) |
Processing file data
string | $text |
Reimplemented from Varien_Simplexml_Config.
Definition at line 79 of file Base.php.
00080 { 00081 $template = Mage::getModel('core/email_template_filter'); 00082 00083 if (null === $this->_wsdlVariables) { 00084 $this->_wsdlVariables = new Varien_Object(); 00085 $this->_wsdlVariables->setUrl(Mage::getUrl('*/*/*')); 00086 $this->_wsdlVariables->setName('Magento'); 00087 $this->_wsdlVariables->setHandler($this->getHandler()); 00088 } 00089 00090 $template->setVariables(array('wsdl'=>$this->_wsdlVariables)); 00091 00092 $text = $template->filter($text); 00093 00094 return $text; 00095 }
setHandler | ( | $ | handler | ) |
Set handler
string | $handler |
Definition at line 57 of file Base.php.