{{Entity}}.class.php 329 B

123456789101112131415161718
  1. {"label":"Classe","syntax":"php"}
  2. <?php
  3. /**
  4. * Define a {{entity}}.
  5. * @author {{user.fullname}}
  6. * @category Plugin
  7. * @license copyright
  8. */
  9. class {{Entity}} {
  10. public $id{{:fields}},${{value.key}}{{/:fields}};
  11. function fromArray($array = array()){
  12. foreach ($array as $key => $value) {
  13. $this->$key = $value;
  14. }
  15. }
  16. }
  17. ?>