original_string: public function setTDParam($field, $path, $value)
      {
          // if value is null, then do nothing
          if ($value === null) {
              return;
          }
  
          // adds a parameter. nested ones can be specified like 'style/color'
          $path = explode('/', $path);
          $current_position = &$this->tdparam[$this->getCurrentIndex()][$field];
          if (!is_array($current_position)) {
              $current_position = array();
          }
  
          foreach ($path as $part) {
              if (array_key_exists($part, $current_position)) {
                  $current_position = &$current_position[$part];
              } else {
                  $current_position[$part] = array();
                  $current_position = &$current_position[$part];
              }
          }
  
          $current_position = $value;
      }
code: public function setTDParam($field, $path, $value)
      {
          // if value is null, then do nothing
          if ($value === null) {
              return;
          }
  
          // adds a parameter. nested ones can be specified like 'style/color'
          $path = explode('/', $path);
          $current_position = &$this->tdparam[$this->getCurrentIndex()][$field];
          if (!is_array($current_position)) {
              $current_position = array();
          }
  
          foreach ($path as $part) {
              if (array_key_exists($part, $current_position)) {
                  $current_position = &$current_position[$part];
              } else {
                  $current_position[$part] = array();
                  $current_position = &$current_position[$part];
              }
          }
  
          $current_position = $value;
      }
code_tokens: public function setTDParam ( $ field , $ path , $ value ) { // if value is null, then do nothing if ( $ value === null ) { return ; } // adds a parameter. nested ones can be specified like 'style/color' $ path = explode ( '/' , $ path ) ; $ current_position = & $ this -> tdparam [ $ this -> getCurrentIndex ( ) ] [ $ field ] ; if ( ! is_array ( $ current_position ) ) { $ current_position = array ( ) ; } foreach ( $ path as $ part ) { if ( array_key_exists ( $ part , $ current_position ) ) { $ current_position = & $ current_position [ $ part ] ; } else { $ current_position [ $ part ] = array ( ) ; $ current_position = & $ current_position [ $ part ] ; } } $ current_position = $ value ; }
docstring: Sets TD params.
  
  @param string $field
  @param string $path
  @param string $value
docstring_tokens: Sets TD params .