Heim >Backend-Entwicklung >PHP-Tutorial >Universelles CRUD-Funktionsframework im schnellen Backend im IcePHP-Framework (4) Tabellenkonfigurationsdatei
Diese Datei ist der Konfigurationsinhalt, der von der Konfigurationsmethode im Framework erhalten wird. Automatische Tools können verwendet werden, um diese Konfiguration aus der Datenbank zu generieren
return Array(
'id' => Array(
'name' => 'id',
'scale' => '',
'type' => ; 'int',
'maxLength' =>
'simpleType' => => '1',
'autoIncrement' => => '',
'description' => '',
'adm_name' => Array(
'name' => 'adm_name',
'scale' => '',
'type' =>
'maxLength' => >'notNull' => '',
'primaryKey' => '',
'binary' => '',
' unsigned' => '',
'hasDefault' => '',
'description' => (
'name' => 'adm_pwd',
'scale' => '',
'type' => 'varchar',
'maxLength' => '64 ',
'simpleType' => 'C',
'notNull' => '',
'autoIncrement' => ,
'binary' => '',
'unsigned' => '',
'description' =>
),
'status' => Array(
'name' => 'status',
'scale' => '',
'type' => 'tinyint',
'maxLength' => ' 1',
'simpleType' => 'L',
'notNull' => '',
'autoIncrement' => ',
'binary' => '',
'unsigned' => '',
'hasDefault' => ',
'description' => '0:禁用 1:启用',
),
'sort' => Array(
'name' => 'sort',
'scale' => '',
'type' => 'int',
'maxLength' => ' 11',
'simpleType' => 'I',
'notNull' => '',
'autoIncrement' => ',
'binary' => '',
'unsigned' => '',
'description' => ,
),
'endtime' => Array(
'name' => 'endtime',
'scale' => '',
'type' => 'varchar',
'maxLength' => ' 30',
'simpleType' => 'C',
'notNull' => ',
'binary' => '',
'unsigned' => '',
'description' =>的时间',
),
'endip' => Array(
'name' => 'endip',
'scale' => '',
'type' => 'varchar',
'maxLength' => ' 20',
'simpleType' => 'C',
'notNull' => ',
'binary' => '',
'unsigned' => '',
'description' =>的ip',
),
'count' => Array(
'name' => 'count',
'scale' => '',
'type' => 'int',
'maxLength' => ' 11',
'simpleType' => 'I',
'notNull' => '',
'autoIncrement' => ',
'binary' => '',
'unsigned' => '',
'description' =>次数',
),
'createtime' => Array(
'name' => 'createtime',
'scale' => '',
'type' => 'varchar',
' maxLength' => '30',
'simpleType' => 'C',
'notNull' => '',
'primaryKey' =>' ' => '',
'binary' => '',
'unsigned' => '',
'hasDefault' => '',
'description' => time',
),
);