Mage_Api_Model_Wsdl_Config_Base Class Reference

Inheritance diagram for Mage_Api_Model_Wsdl_Config_Base:

Varien_Simplexml_Config Mage_Api_Model_Wsdl_Config

List of all members.

Public Member Functions

 __construct ($sourceData=null)
 setHandler ($handler)
 getHandler ()
 processFileData ($text)
 addLoadedFile ($file)
 loadFile ($file)

Protected Attributes

 $_handler = ''
 $_wsdlVariables = null
 $_loadedFiles = array()


Detailed Description

Definition at line 34 of file Base.php.


Constructor & Destructor Documentation

__construct ( sourceData = null  ) 

Constructor

Initializes XML for this configuration

See also:
self.setXml
Parameters:
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     }


Member Function Documentation

addLoadedFile ( file  ) 

Definition at line 97 of file Base.php.

00098     {
00099         if (!in_array($file, $this->_loadedFiles)) {
00100             $this->_loadedFiles[] = $file;
00101         }
00102         return $this;
00103     }

getHandler (  ) 

Get handler

Returns:
string

Definition at line 68 of file Base.php.

00069     {
00070         return $this->_handler;
00071     }

loadFile ( filePath  ) 

Imports XML file

Parameters:
string $filePath
Returns:
Varien_Simplexml_Element

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

Parameters:
string $text
Returns:
string

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

Parameters:
string $handler
Returns:
Mage_Api_Model_Wsdl_Config_Base

Definition at line 57 of file Base.php.

00058     {
00059         $this->_handler = $handler;
00060         return $this;
00061     }


Member Data Documentation

$_handler = '' [protected]

Definition at line 36 of file Base.php.

$_loadedFiles = array() [protected]

Definition at line 43 of file Base.php.

$_wsdlVariables = null [protected]

Definition at line 41 of file Base.php.


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:33 2009 for Magento by  doxygen 1.5.8