Mage_Api_Model_Server_V2_Handler Class Reference

Inheritance diagram for Mage_Api_Model_Server_V2_Handler:

Mage_Api_Model_Server_Handler_Abstract

List of all members.

Public Member Functions

 __call ($function, $args)

Protected Attributes

 $_resourceSuffix = '_v2'


Detailed Description

Definition at line 34 of file Handler.php.


Member Function Documentation

__call ( function,
args 
)

Interceptor for all interfaces

Parameters:
sttring $function
array $args

Definition at line 45 of file Handler.php.

00046     {
00047         $sessionId = array_shift( $args );
00048         $apiKey = '';
00049         $nodes = Mage::getSingleton('api/config')->getNode('v2/resources_function_prefix')->children();
00050         foreach ($nodes as $resource => $prefix) {
00051             $prefix = $prefix->asArray();
00052             if (false !== strpos($function, $prefix)) {
00053                 $method = substr($function, strlen($prefix));
00054                 $apiKey = $resource . '.' . strtolower($method[0]).substr($method, 1);
00055             }
00056         }
00057         return $this->call($sessionId, $apiKey, $args);
00058     }


Member Data Documentation

$_resourceSuffix = '_v2' [protected]

Reimplemented from Mage_Api_Model_Server_Handler_Abstract.

Definition at line 36 of file Handler.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