cyrilleinvalides/choupas/www/admin/app/providers/invalides/Model.ADMIN_menuitems.php

190 lines
3.6 KiB
PHP
Executable File

<?php
return array(
'type' => 'MySQLTable',
'name' => 'ADMIN_menuitems',
'extends' => '_MySQLTable',
'desc' => array(
'gender' => 1,
'singular' => 'menuitem',
'plural' => 'menuitems',
'reference' => 'menuitem {name}',
),
'children' => array(
'View' => array(
'treize' => array(
'type' => 'View',
'file' => 'views/listEdit.html',
'list' => '+ actif:1 + new:1 + name:1 + url:1',
'edit' => '* - position',
),
'admin' => array(
'type' => 'View',
'file' => 'views/listEdit.html',
'list' => '+ actif:1 + new:1 + name:1 + url:1',
'edit' => '* - position',
),
),
'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',
),
),
'menu' => array(
'type' => 'MySQLField',
'name' => 'menu',
'desc' => array(
'gender' => null,
'singular' => 'menu',
'plural' => '',
),
'value' => array(
'type' => 'relation',
'model' => 'ADMIN_menus',
'field' => 'id',
),
),
'parent' => array(
'type' => 'MySQLField',
'name' => 'parent',
'desc' => array(
'gender' => null,
'singular' => 'parent',
'plural' => '',
),
'value' => array(
'type' => 'relation',
'model' => 'ADMIN_menuitems',
'field' => 'id',
'query' => array(
'actif' => 1,
),
'nullable' => 1,
),
),
'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',
),
),
'actif' => array(
'type' => 'MySQLField',
'name' => 'actif',
'desc' => array(
'gender' => null,
'singular' => 'actif',
'plural' => '',
),
'value' => array(
'default' => null,
'null' => false,
'type' => 'boolean',
),
),
'new' => array(
'type' => 'MySQLField',
'name' => 'new',
'desc' => array(
'gender' => null,
'singular' => 'new',
'plural' => '',
),
'value' => array(
'default' => null,
'null' => false,
'type' => 'boolean',
),
),
'name' => array(
'type' => 'MySQLField',
'name' => 'name',
'desc' => array(
'gender' => null,
'singular' => 'name',
'plural' => '',
),
'value' => array(
'minlength' => 0,
'maxlength' => 255,
'default' => null,
'null' => false,
'type' => 'string',
),
),
'url' => array(
'type' => 'MySQLField',
'name' => 'url',
'desc' => array(
'gender' => null,
'singular' => 'url',
'plural' => '',
),
'value' => array(
'minlength' => 0,
'maxlength' => 255,
'default' => null,
'null' => false,
'type' => 'string',
),
),
),
'Index' => array(
'PRIMARY' => array(
'type' => 'MySQLIndex',
'model' => 'ADMIN_menuitems',
'name' => 'PRIMARY',
'unique' => true,
'fields' => array(
1 => 'id',
'id' => array(
'position' => 1,
'op' => '=',
),
),
),
'menu' => array(
'type' => 'MySQLIndex',
'model' => 'ADMIN_menuitems',
'name' => 'menu',
'unique' => false,
'fields' => array(
1 => 'menu',
'menu' => array(
'position' => 1,
'op' => '=',
),
),
),
),
),
'sort' => array(
0 => array(
0 => 'parent',
),
),
)
?>