public function call($reqData) {
    $respData = $this->createError('Unrecognized entity or action');

    if ($reqData['entity'] == 'Cxn' && preg_match('/^[a-zA-Z]+$/', $reqData['action'])) {
      $func = 'on' . $reqData['entity'] . strtoupper($reqData['action']{0}) . substr($reqData['action'], 1);
      if (is_callable(array($this, $func))) {
        $respData = call_user_func(array($this, $func), $reqData['cxn'], $reqData['params']);
      }
    }

    return $respData;
  }
public function call($reqData) {
    $respData = $this->createError('Unrecognized entity or action');

    if ($reqData['entity'] == 'Cxn' && preg_match('/^[a-zA-Z]+$/', $reqData['action'])) {
      $func = 'on' . $reqData['entity'] . strtoupper($reqData['action']{0}) . substr($reqData['action'], 1);
      if (is_callable(array($this, $func))) {
        $respData = call_user_func(array($this, $func), $reqData['cxn'], $reqData['params']);
      }
    }

    return $respData;
  }
public function call ( $ reqData ) { $ respData = $ this -> createError ( 'Unrecognized entity or action' ) ; if ( $ reqData [ 'entity' ] == 'Cxn' && preg_match ( '/^[a-zA-Z]+$/' , $ reqData [ 'action' ] ) ) { $ func = 'on' . $ reqData [ 'entity' ] . strtoupper ( $ reqData [ 'action' ] { 0 } ) . substr ( $ reqData [ 'action' ] , 1 ) ; if ( is_callable ( array ( $ this , $ func ) ) ) { $ respData = call_user_func ( array ( $ this , $ func ) , $ reqData [ 'cxn' ] , $ reqData [ 'params' ] ) ; } } return $ respData ; }
Delegate handling of hte registration message to a callback function.

@param $reqData
@return array|mixed
Delegate handling of hte registration message to a callback function .