You are here

public function WsConfig::getOperations in Web Service Data 7

1 call to WsConfig::getOperations()
WsConfig::getPossibleMethods in modules/wsconfig/wsconfig.entity.inc

File

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

Class

WsConfig
The class used for wsconfig entities

Code

public function getOperations() {
  $ops = array();
  foreach ($this->data as $key => $val) {
    if (drupal_substr($key, -1 * drupal_strlen('_data_method')) == '_data_method') {
      $ops[] = drupal_substr($key, 0, -1 * drupal_strlen('_data_method'));
    }
  }
  if (empty($ops)) {
    return array();
  }
  return $ops;
}