You are here

public function WsConfig::getMethodName in Web Service Data 7

File

modules/wsconfig/wsconfig.entity.inc, line 227
Entity classes

Class

WsConfig
The class used for wsconfig entities

Code

public function getMethodName($operation) {
  $supported = $this->connector
    ->getMethods();
  foreach ($supported['multiple'] as $key => $val) {
    if (drupal_substr($operation, 0, drupal_strlen($key) + 1) == $key . '_') {
      $operation = ucfirst($key) . ': ' . ucfirst(drupal_substr($operation, drupal_strlen($key) + 1));
      return $operation;
    }
  }
  return ucfirst($operation);
}