code: protected function buildResponse()
      {
          $res = array();
          $res['type'] = $this->getParameters()->getType();
          $res['tid'] = $this->getParameters()->getTid();
          $res['action'] = $this->getParameters()->getAction();
          $res['method'] = $this->getParameters()->getMethod();
          $res['result'] = $this->getResult();
  
          return $res;
      }
docs: build a valid ext direct response and returns as array
  
  @return array