public function set_attributes($type, $fields, $hints = array()) {
        $this->unique = !empty($type) ? true : false;
        $this->fields = $fields;
        $this->hints = $hints;
    }
public function set_attributes($type, $fields, $hints = array()) {
        $this->unique = !empty($type) ? true : false;
        $this->fields = $fields;
        $this->hints = $hints;
    }
public function set_attributes ( $ type , $ fields , $ hints = array ( ) ) { $ this -> unique = ! empty ( $ type ) ? true : false ; $ this -> fields = $ fields ; $ this -> hints = $ hints ; }
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
Set all the attributes of one xmldb_index