original_string: public function add_key($name, $type, $fields, $reftable=null, $reffields=null) {
          $key = new xmldb_key($name, $type, $fields, $reftable, $reffields);
          $this->addKey($key);
      }
code: public function add_key($name, $type, $fields, $reftable=null, $reffields=null) {
          $key = new xmldb_key($name, $type, $fields, $reftable, $reffields);
          $this->addKey($key);
      }
code_tokens: public function add_key ( $ name , $ type , $ fields , $ reftable = null , $ reffields = null ) { $ key = new xmldb_key ( $ name , $ type , $ fields , $ reftable , $ reffields ) ; $ this -> addKey ( $ key ) ; }
docstring: This function will add one new key to the table with all
  its attributes defined
  
  @param string $name name of the key
  @param int $type XMLDB_KEY_PRIMARY, XMLDB_KEY_UNIQUE, XMLDB_KEY_FOREIGN
  @param array $fields an array of fieldnames to build the key over
  @param string $reftable name of the table the FK points to or null
  @param array $reffields an array of fieldnames in the FK table or null
docstring_tokens: This function will add one new key to the table with all its attributes defined