100 lines
1.9 KiB
PHP
Executable File
100 lines
1.9 KiB
PHP
Executable File
<?php
|
|
|
|
return array(
|
|
'type' => 'MySQLTable',
|
|
'name' => 'ADMIN_menus',
|
|
'extends' => '_MySQLTable',
|
|
'desc' => array(
|
|
'gender' => 1,
|
|
'singular' => 'menu',
|
|
'plural' => 'menus',
|
|
'reference' => 'menu {name}',
|
|
),
|
|
'children' => array(
|
|
'View' => array(
|
|
'admin' => array(
|
|
'type' => 'View',
|
|
'file' => 'views/listEdit.html',
|
|
'list' => '+ name',
|
|
'edit' => '* - position',
|
|
'actions' => array(
|
|
0 => array(
|
|
'name' => 'elements',
|
|
'url' => '?request[view]=invalides.ADMIN_menuitems.admin&object[menu]={row.id}&object[parent]=0',
|
|
),
|
|
),
|
|
),
|
|
),
|
|
'Field' => array(
|
|
'id' => array(
|
|
'type' => 'MySQLField',
|
|
'name' => 'id',
|
|
'desc' => array(
|
|
'gender' => null,
|
|
'singular' => 'id',
|
|
'plural' => '',
|
|
),
|
|
'value' => array(
|
|
'min' => 0,
|
|
'max' => 4294967296,
|
|
'default' => null,
|
|
'null' => false,
|
|
'type' => 'integer',
|
|
),
|
|
),
|
|
'position' => array(
|
|
'type' => 'MySQLField',
|
|
'name' => 'position',
|
|
'desc' => array(
|
|
'gender' => null,
|
|
'singular' => 'position',
|
|
'plural' => '',
|
|
),
|
|
'value' => array(
|
|
'min' => 0,
|
|
'max' => 4294967296,
|
|
'default' => null,
|
|
'null' => false,
|
|
'type' => 'integer',
|
|
),
|
|
),
|
|
'name' => array(
|
|
'type' => 'MySQLField',
|
|
'name' => 'name',
|
|
'desc' => array(
|
|
'gender' => null,
|
|
'singular' => 'name',
|
|
'plural' => '',
|
|
),
|
|
'value' => array(
|
|
'minlength' => 0,
|
|
'maxlength' => 32,
|
|
'default' => null,
|
|
'null' => false,
|
|
'type' => 'string',
|
|
),
|
|
),
|
|
),
|
|
'Index' => array(
|
|
'PRIMARY' => array(
|
|
'type' => 'MySQLIndex',
|
|
'model' => 'ADMIN_menus',
|
|
'name' => 'PRIMARY',
|
|
'unique' => true,
|
|
'fields' => array(
|
|
1 => 'id',
|
|
'id' => array(
|
|
'position' => 1,
|
|
'op' => '=',
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
'sort' => array(
|
|
0 => array(
|
|
),
|
|
),
|
|
)
|
|
|
|
?>
|