original_string: public function set_attributes($type, $fields, $hints = array()) {
          $this->unique = !empty($type) ? true : false;
          $this->fields = $fields;
          $this->hints = $hints;
      }
code: public function set_attributes($type, $fields, $hints = array()) {
          $this->unique = !empty($type) ? true : false;
          $this->fields = $fields;
          $this->hints = $hints;
      }
code_tokens: public function set_attributes ( $ type , $ fields , $ hints = array ( ) ) { $ this -> unique = ! empty ( $ type ) ? true : false ; $ this -> fields = $ fields ; $ this -> hints = $ hints ; }
docstring: Set all the attributes of one xmldb_index
  
  @param string type XMLDB_INDEX_UNIQUE, XMLDB_INDEX_NOTUNIQUE
  @param array fields an array of fieldnames to build the index over
  @param array $hints array of optional hints
docstring_tokens: Set all the attributes of one xmldb_index