original_string: protected function _setCacheControl()
      {
          $control = '';
          foreach ($this->_cacheDirectives as $key => $val) {
              $control .= $val === true ? $key : sprintf('%s=%s', $key, $val);
              $control .= ', ';
          }
          $control = rtrim($control, ', ');
          $this->_setHeader('Cache-Control', $control);
      }
code: protected function _setCacheControl()
      {
          $control = '';
          foreach ($this->_cacheDirectives as $key => $val) {
              $control .= $val === true ? $key : sprintf('%s=%s', $key, $val);
              $control .= ', ';
          }
          $control = rtrim($control, ', ');
          $this->_setHeader('Cache-Control', $control);
      }
code_tokens: protected function _setCacheControl ( ) { $ control = '' ; foreach ( $ this -> _cacheDirectives as $ key => $ val ) { $ control .= $ val === true ? $ key : sprintf ( '%s=%s' , $ key , $ val ) ; $ control .= ', ' ; } $ control = rtrim ( $ control , ', ' ) ; $ this -> _setHeader ( 'Cache-Control' , $ control ) ; }
docstring: Helper method to generate a valid Cache-Control header from the options set
  in other methods
  
  @return void
docstring_tokens: Helper method to generate a valid Cache - Control header from the options set in other methods