Maison >développement back-end >tutoriel php >Cadre de fonctions Universal CRUD dans le backend rapide du framework IcePHP (4) Fichier de configuration de table
Ce fichier est le contenu de configuration obtenu par la méthode config dans le framework. Des outils automatiques peuvent être utilisés pour générer cette configuration à partir de la base de données
retour Array(
'id' => Array(
'name' => 'id',
'scale' => '',
'type' => ; 'int',
'maxLength' => '11',
'simpleType' => 'R',
'notNull' => => '1',
'autoIncrement' => '1',
'binary' => '',
'non signé' => => '',
'description' => '',
),
'adm_name' => 'scale' => '',
'type' => 'varchar',
'maxLength' => '25',
'simpleType' => >'notNull' => '',
'primaryKey' => '',
'autoIncrement' => '',
'binary' => non signé' => '',
'hasDefault' => '',
'description' => '管理名字',
),
'adm_pwd' => (
'name' => 'adm_pwd',
'scale' => '',
'type' => 'varchar',
'maxLength' => '64 ',
'simpleType' => 'C',
'notNull' => '',
'primaryKey' =>',
'autoIncrement' => ,
'binary' => '',
'unsigned' => '',
'hasDefault' => '',
'description' =>
),
'statut' => Array(
'name' => 'status',
'scale' => '',
'type' => 'tinyint',
'maxLength' => ' 1',
'simpleType' => 'L',
'notNull' => '',
'primaryKey' =>',
'autoIncrement' => ',
'binary' => '',
'unsigned' => '',
'hasDefault' => ',
'description' => '0:禁用 1:启用',
),
'sort' => Array(
'name' => 'sort',
'scale' => '',
'type' => 'int',
'maxLength' => ' 11',
'simpleType' => 'I',
'notNull' => '',
'primaryKey' =>',
'autoIncrement' => ',
'binary' => '',
'unsigned' => '',
'hasDefault' => '',
'description' => ,
),
'endtime' => Array(
'name' => 'endtime',
'scale' => '',
'type' => 'varchar',
'maxLength' => ' 30',
'simpleType' => 'C',
'notNull' => '',
'primaryKey' =>',
'autoIncrement' => ',
'binary' => '',
'unsigned' => '',
'hasDefault' => '',
'description' =>的时间',
),
'endip' => Array(
'name' => 'endip',
'scale' => '',
'type' => 'varchar',
'maxLength' => ' 20',
'simpleType' => 'C',
'notNull' => '',
'primaryKey' =>',
'autoIncrement' => ',
'binary' => '',
'unsigned' => '',
'hasDefault' => '',
'description' =>的ip',
),
'count' => Array(
'name' => 'count',
'scale' => '',
'type' => 'int',
'maxLength' => ' 11',
'simpleType' => 'I',
'notNull' => '',
'primaryKey' =>',
'autoIncrement' => ',
'binary' => '',
'unsigned' => '',
'hasDefault' => '',
'description' =>次数',
),
'createtime' => Array(
'name' => 'createtime',
'scale' => '',
'type' => 'varchar',
' maxLength' => '30',
'simpleType' => 'C',
'notNull' => '',
'primaryKey' => => '',
'binary' => '',
'unsigned' => '',
'hasDefault' => '',
'description' => ',
),
);