Public Member Functions | |
__call ($function, $args) | |
Protected Attributes | |
$_resourceSuffix = '_v2' |
Definition at line 34 of file Handler.php.
__call | ( | $ | function, | |
$ | args | |||
) |
Interceptor for all interfaces
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 }
$_resourceSuffix = '_v2' [protected] |
Reimplemented from Mage_Api_Model_Server_Handler_Abstract.
Definition at line 36 of file Handler.php.