public function getDefaultClause($xmldb_field) {

        $defaultvalue = $this->getDefaultValue ($xmldb_field);

        if ($defaultvalue !== null) {
            return ' DEFAULT ' . $defaultvalue;
        } else {
            return null;
        }
    }
public function getDefaultClause($xmldb_field) {

        $defaultvalue = $this->getDefaultValue ($xmldb_field);

        if ($defaultvalue !== null) {
            return ' DEFAULT ' . $defaultvalue;
        } else {
            return null;
        }
    }
public function getDefaultClause ( $ xmldb_field ) { $ defaultvalue = $ this -> getDefaultValue ( $ xmldb_field ) ; if ( $ defaultvalue !== null ) { return ' DEFAULT ' . $ defaultvalue ; } else { return null ; } }
Given one xmldb_field, returns the correct "default clause" for the current configuration.

@param xmldb_field $xmldb_field The xmldb_field.
@return The SQL clause for generating the default value as in $xmldb_field.
Given one xmldb_field returns the correct default clause for the current configuration .