original_string: function addField( $attributes ) {
  		// check we're in a valid row
  		if( !isset( $this->row ) || !isset( $this->data[$this->row] ) ) {
  			return;
  		}
  
  		// Set the field index so we know where we are
  		if( isset( $attributes['NAME'] ) ) {
  			$this->current_field = $this->FieldID( $attributes['NAME'] );
  		} else {
  			$this->current_field = count( $this->data[$this->row] );
  		}
  
  		// initialise data
  		if( !isset( $this->data[$this->row][$this->current_field] ) ) {
  			$this->data[$this->row][$this->current_field] = '';
  		}
  	}
code: function addField( $attributes ) {
  		// check we're in a valid row
  		if( !isset( $this->row ) || !isset( $this->data[$this->row] ) ) {
  			return;
  		}
  
  		// Set the field index so we know where we are
  		if( isset( $attributes['NAME'] ) ) {
  			$this->current_field = $this->FieldID( $attributes['NAME'] );
  		} else {
  			$this->current_field = count( $this->data[$this->row] );
  		}
  
  		// initialise data
  		if( !isset( $this->data[$this->row][$this->current_field] ) ) {
  			$this->data[$this->row][$this->current_field] = '';
  		}
  	}
code_tokens: function addField ( $ attributes ) { // check we're in a valid row if ( ! isset ( $ this -> row ) || ! isset ( $ this -> data [ $ this -> row ] ) ) { return ; } // Set the field index so we know where we are if ( isset ( $ attributes [ 'NAME' ] ) ) { $ this -> current_field = $ this -> FieldID ( $ attributes [ 'NAME' ] ) ; } else { $ this -> current_field = count ( $ this -> data [ $ this -> row ] ) ; } // initialise data if ( ! isset ( $ this -> data [ $ this -> row ] [ $ this -> current_field ] ) ) { $ this -> data [ $ this -> row ] [ $ this -> current_field ] = '' ; } }
docstring: Adds a field to the insert
  
  @param string $name Field name
  @return string Field list
docstring_tokens: Adds a field to the insert