public function set_attributes($type, $fields, $reftable=null, $reffields=null) {
        $this->type = $type;
        $this->fields = $fields;
        $this->reftable = $reftable;
        $this->reffields = empty($reffields) ? array() : $reffields;
    }
public function set_attributes($type, $fields, $reftable=null, $reffields=null) {
        $this->type = $type;
        $this->fields = $fields;
        $this->reftable = $reftable;
        $this->reffields = empty($reffields) ? array() : $reffields;
    }
public function set_attributes ( $ type , $ fields , $ reftable = null , $ reffields = null ) { $ this -> type = $ type ; $ this -> fields = $ fields ; $ this -> reftable = $ reftable ; $ this -> reffields = empty ( $ reffields ) ? array ( ) : $ reffields ; }
Set all the attributes of one xmldb_key

@param string $type XMLDB_KEY_[PRIMARY|UNIQUE|FOREIGN|FOREIGN_UNIQUE]
@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
Set all the attributes of one xmldb_key