12345678910111213141516171819202122232425262728 |
- {"label":"Entité","syntax":"php"}
- <?php
- /**
- * Define a {{entity}}.
- * @author {{user.fullname}}
- * @category Plugin
- * @license copyright
- */
- class {{Entity}} extends Entity{
- public $id;{{:fields}}
- public ${{value.key}}; //{{value.label}} ({{value.typeLabel}}){{/:fields}}
-
- protected $TABLE_NAME = '{{plugin}}_{{table}}';
- public $fields =
- array(
- 'id' => 'key',{{:fields}}
- '{{value.key}}' => '{{value.sql-type}}'{{;}},{{/;}}{{/:fields}}
- );
- public $links = array({{:links}}
- '{{value.key}}' => '{{value.entity}}'{{;}},{{/;}}{{/:links}}
- );
- //Colonnes indexées
- public $indexes = array();
- }
- ?>
|