Mage_Api_Model_Resource_Abstract Class Reference

Inheritance diagram for Mage_Api_Model_Resource_Abstract:

Mage_Catalog_Model_Api_Resource Mage_Catalog_Model_Product_Attribute_Set_Api Mage_Catalog_Model_Product_Type_Api Mage_Customer_Model_Api_Resource Mage_Customer_Model_Group_Api Mage_Directory_Model_Country_Api Mage_Directory_Model_Region_Api Mage_Sales_Model_Api_Resource

List of all members.

Public Member Functions

 setResourceConfig (Varien_Simplexml_Element $xml)
 getResourceConfig ()

Protected Member Functions

 _getSession ()
 _getConfig ()
 _getServer ()
 _fault ($code, $customMessage=null)

Protected Attributes

 $_resourceConfig = null


Detailed Description

Definition at line 34 of file Abstract.php.


Member Function Documentation

_fault ( code,
customMessage = null 
) [protected]

Dispatches fault

Parameters:
string $code

Definition at line 101 of file Abstract.php.

00102     {
00103         throw new Mage_Api_Exception($code, $customMessage);
00104     }

_getConfig (  )  [protected]

Retrieve webservice configuration

Returns:
Mage_Api_Model_Config

Definition at line 59 of file Abstract.php.

00060     {
00061         return Mage::getSingleton('api/config');
00062     }

_getServer (  )  [protected]

Retrieve webservice server

Returns:
Mage_Api_Model_Server

Definition at line 91 of file Abstract.php.

00092     {
00093         return Mage::getSingleton('api/server');
00094     }

_getSession (  )  [protected]

Retrieve webservice session

Returns:
Mage_Api_Model_Session

Definition at line 49 of file Abstract.php.

00050     {
00051         return Mage::getSingleton('api/session');
00052     }

getResourceConfig (  ) 

Retrieve configuration for api resource

Returns:
Varien_Simplexml_Element

Definition at line 81 of file Abstract.php.

00082     {
00083         return $this->_resourceConfig;
00084     }

setResourceConfig ( Varien_Simplexml_Element xml  ) 

Set configuration for api resource

Parameters:
Varien_Simplexml_Element $xml
Returns:
Mage_Api_Model_Resource_Abstract

Definition at line 70 of file Abstract.php.

00071     {
00072         $this->_resourceConfig = $xml;
00073         return $this;
00074     }


Member Data Documentation

$_resourceConfig = null [protected]

Definition at line 42 of file Abstract.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