Special case opus mime detction
[mediawiki.git] / includes / libs / rdbms / field / MssqlField.php
blob80e19245bf40f1bc93487910566f9551c8789dca
1 <?php
2 class MssqlField implements Field {
3 private $name, $tableName, $default, $max_length, $nullable, $type;
5 function __construct( $info ) {
6 $this->name = $info['COLUMN_NAME'];
7 $this->tableName = $info['TABLE_NAME'];
8 $this->default = $info['COLUMN_DEFAULT'];
9 $this->max_length = $info['CHARACTER_MAXIMUM_LENGTH'];
10 $this->nullable = !( strtolower( $info['IS_NULLABLE'] ) == 'no' );
11 $this->type = $info['DATA_TYPE'];
14 function name() {
15 return $this->name;
18 function tableName() {
19 return $this->tableName;
22 function defaultValue() {
23 return $this->default;
26 function maxLength() {
27 return $this->max_length;
30 function isNullable() {
31 return $this->nullable;
34 function type() {
35 return $this->type;