public function add_field($name, $type, $precision=null, $unsigned=null, $notnull=null, $sequence=null, $default=null, $previous=null) {
        $field = new xmldb_field($name, $type, $precision, $unsigned, $notnull, $sequence, $default);
        $this->addField($field, $previous);

        return $field;
    }
public function add_field($name, $type, $precision=null, $unsigned=null, $notnull=null, $sequence=null, $default=null, $previous=null) {
        $field = new xmldb_field($name, $type, $precision, $unsigned, $notnull, $sequence, $default);
        $this->addField($field, $previous);

        return $field;
    }
public function add_field ( $ name , $ type , $ precision = null , $ unsigned = null , $ notnull = null , $ sequence = null , $ default = null , $ previous = null ) { $ field = new xmldb_field ( $ name , $ type , $ precision , $ unsigned , $ notnull , $ sequence , $ default ) ; $ this -> addField ( $ field , $ previous ) ; return $ field ; }
This function will add one new field to the table with all
its attributes defined

@param string $name name of the field
@param int $type XMLDB_TYPE_INTEGER, XMLDB_TYPE_NUMBER, XMLDB_TYPE_CHAR, XMLDB_TYPE_TEXT, XMLDB_TYPE_BINARY
@param string $precision length for integers and chars, two-comma separated numbers for numbers
@param bool $unsigned XMLDB_UNSIGNED or null (or false)
@param bool $notnull XMLDB_NOTNULL or null (or false)
@param bool $sequence XMLDB_SEQUENCE or null (or false)
@param mixed $default meaningful default o null (or false)
@param xmldb_object $previous name of the previous field in the table or null (or false)
@return xmlddb_field
This function will add one new field to the table with all its attributes defined