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

211 lines
4.2 KiB
PHP
Executable File

<?php
return array(
'type' => 'MySQLTable',
'name' => 'portraits',
'extends' => '_MySQLTable',
'desc' => array(
'gender' => null,
'singular' => 'portraits',
'plural' => 'portraits',
),
'children' => array(
'View' => array(
'admin' => array(
'type' => 'View',
'file' => 'views/listEdit.html',
'list' => '* - position',
'edit' => '* - position',
'actions' => array(
0 => array(
'name' => 'annexe',
'url' => '?request[view]=invalides.annexes.admin&object[portrait]={row.id}',
),
),
),
),
'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',
),
),
'boutonDiapo' => array(
'type' => 'MySQLField',
'name' => 'boutonDiapo',
'desc' => array(
'gender' => null,
'singular' => 'boutonDiapo',
'plural' => '',
),
'value' => array(
'minlength' => 0,
'maxlength' => 255,
'default' => null,
'null' => false,
'type' => 'string',
),
),
'titre' => array(
'type' => 'MySQLField',
'name' => 'titre',
'desc' => array(
'gender' => null,
'singular' => 'titre',
'plural' => '',
),
'value' => array(
'minlength' => 0,
'maxlength' => 255,
'default' => null,
'null' => false,
'type' => 'string',
),
),
'chapo' => array(
'type' => 'MySQLField',
'name' => 'chapo',
'desc' => array(
'gender' => null,
'singular' => 'chapo',
'plural' => '',
),
'value' => array(
'minlength' => 0,
'maxlength' => 255,
'default' => null,
'null' => false,
'type' => 'string',
),
),
'texte' => array(
'type' => 'MySQLField',
'name' => 'texte',
'desc' => array(
'gender' => null,
'singular' => 'texte',
'plural' => '',
),
'value' => array(
'minlength' => 0,
'maxlength' => 0,
'default' => null,
'null' => false,
'type' => 'richText',
),
),
'imagePortrait' => array(
'type' => 'MySQLField',
'name' => 'imagePortrait',
'desc' => array(
'gender' => null,
'singular' => 'imagePortrait',
'plural' => '',
),
'value' => array(
'minlength' => 0,
'maxlength' => 255,
'default' => null,
'null' => false,
'type' => 'image',
),
),
'imagePortraitAlt' => array(
'type' => 'MySQLField',
'name' => 'imagePortraitAlt',
'desc' => array(
'gender' => null,
'singular' => 'imagePortraitAlt',
'plural' => '',
),
'value' => array(
'minlength' => 0,
'maxlength' => 255,
'default' => null,
'null' => false,
'type' => 'string',
),
),
'imagePortraitTitle' => array(
'type' => 'MySQLField',
'name' => 'imagePortraitTitle',
'desc' => array(
'gender' => null,
'singular' => 'imagePortraitTitle',
'plural' => '',
),
'value' => array(
'minlength' => 0,
'maxlength' => 255,
'default' => null,
'null' => false,
'type' => 'string',
),
),
'video' => array(
'type' => 'MySQLField',
'name' => 'video',
'desc' => array(
'gender' => null,
'singular' => 'video',
'plural' => '',
),
'value' => array(
'minlength' => 0,
'maxlength' => 255,
'default' => null,
'null' => false,
'type' => 'file',
),
),
),
'Index' => array(
'PRIMARY' => array(
'type' => 'MySQLIndex',
'model' => 'portraits',
'name' => 'PRIMARY',
'unique' => true,
'fields' => array(
1 => 'id',
'id' => array(
'position' => 1,
'op' => '=',
),
),
),
),
),
'sort' => array(
0 => array(
),
),
)
?>