protected function generateHeadersTemplate($id, $st_params)
    {
        if (!isset($st_params['ApiHeaders']))
        {
             return;
        }

        $body = [];
        $partial_template = $this->loadPartialTemplate('paramContentTpl');

        foreach ($st_params['ApiHeaders'] as $params) {
            $tr = array(
                '{{ name }}'        => $params['name'],
                '{{ type }}'        => $params['type'],
                '{{ nullable }}'    => @$params['nullable'] == '1' ? 'No' : 'Yes',
                '{{ description }}' => @$params['description'],
            );
            $body[] = strtr($partial_template, $tr);
        }

        return strtr($this->loadPartialTemplate('paramTableTpl'), array('{{ tbody }}' => implode(PHP_EOL, $body)));

    }
protected function generateHeadersTemplate($id, $st_params)
    {
        if (!isset($st_params['ApiHeaders']))
        {
             return;
        }

        $body = [];
        $partial_template = $this->loadPartialTemplate('paramContentTpl');

        foreach ($st_params['ApiHeaders'] as $params) {
            $tr = array(
                '{{ name }}'        => $params['name'],
                '{{ type }}'        => $params['type'],
                '{{ nullable }}'    => @$params['nullable'] == '1' ? 'No' : 'Yes',
                '{{ description }}' => @$params['description'],
            );
            $body[] = strtr($partial_template, $tr);
        }

        return strtr($this->loadPartialTemplate('paramTableTpl'), array('{{ tbody }}' => implode(PHP_EOL, $body)));

    }
protected function generateHeadersTemplate ( $ id , $ st_params ) { if ( ! isset ( $ st_params [ 'ApiHeaders' ] ) ) { return ; } $ body = [ ] ; $ partial_template = $ this -> loadPartialTemplate ( 'paramContentTpl' ) ; foreach ( $ st_params [ 'ApiHeaders' ] as $ params ) { $ tr = array ( '{{ name }}' => $ params [ 'name' ] , '{{ type }}' => $ params [ 'type' ] , '{{ nullable }}' => @ $ params [ 'nullable' ] == '1' ? 'No' : 'Yes' , '{{ description }}' => @ $ params [ 'description' ] , ) ; $ body [ ] = strtr ( $ partial_template , $ tr ) ; } return strtr ( $ this -> loadPartialTemplate ( 'paramTableTpl' ) , array ( '{{ tbody }}' => implode ( PHP_EOL , $ body ) ) ) ; }
Generates the template for headers
@param  int          $id
@param  array        $st_params
@return void|string
Generates the template for headers