12345678910111213141516171819202122 |
- {"label":"Entité","syntax":"php"}
- <?php
- /**
- * Define a {{entity}}.
- * @author {{user.fullname}}
- * @category Plugin
- * @license copyright
- */
- class {{Entity}} extends Entity{
- public $id{{:fields}},${{value.key}}{{/: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}}
- );
- }
- ?>
|