public function setFromADOIndex($adoindex) {

        // Set the unique field
        $this->unique = false;
        // Set the fields, converting all them to lowercase
        $fields = array_flip(array_change_key_case(array_flip($adoindex['columns'])));
        $this->fields = $fields;
        // Some more fields
        $this->loaded = true;
        $this->changed = true;
    }
public function setFromADOIndex($adoindex) {

        // Set the unique field
        $this->unique = false;
        // Set the fields, converting all them to lowercase
        $fields = array_flip(array_change_key_case(array_flip($adoindex['columns'])));
        $this->fields = $fields;
        // Some more fields
        $this->loaded = true;
        $this->changed = true;
    }
public function setFromADOIndex ( $ adoindex ) { // Set the unique field $ this -> unique = false ; // Set the fields, converting all them to lowercase $ fields = array_flip ( array_change_key_case ( array_flip ( $ adoindex [ 'columns' ] ) ) ) ; $ this -> fields = $ fields ; // Some more fields $ this -> loaded = true ; $ this -> changed = true ; }
This function will set all the attributes of the xmldb_index object
based on information passed in one ADOindex
@param array
@return void
This function will set all the attributes of the xmldb_index object based on information passed in one ADOindex