private function generateBodyTemplate($id, $docs)
    {
      if (!isset($docs['ApiBody']))
      {
        return;
      }

      $body = $docs['ApiBody'][0];

      return strtr($this->loadPartialTemplate('samplePostBodyTpl'), array(
        '{{ elt_id }}' => $id,
        '{{ body }}' => $body['sample']
      ));

    }
private function generateBodyTemplate($id, $docs)
    {
      if (!isset($docs['ApiBody']))
      {
        return;
      }

      $body = $docs['ApiBody'][0];

      return strtr($this->loadPartialTemplate('samplePostBodyTpl'), array(
        '{{ elt_id }}' => $id,
        '{{ body }}' => $body['sample']
      ));

    }
private function generateBodyTemplate ( $ id , $ docs ) { if ( ! isset ( $ docs [ 'ApiBody' ] ) ) { return ; } $ body = $ docs [ 'ApiBody' ] [ 0 ] ; return strtr ( $ this -> loadPartialTemplate ( 'samplePostBodyTpl' ) , array ( '{{ elt_id }}' => $ id , '{{ body }}' => $ body [ 'sample' ] ) ) ; }
Generate POST body template

@param  int      $id
@param  array    $body
@return void|string
Generate POST body template