DynamicValue.class.php 886 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Define a dynamicvalue.
  4. * @author Charles DUBOIS
  5. * @category Plugin
  6. * @license MIT
  7. */
  8. class DynamicValue extends Entity{
  9. public $id;
  10. public $field; //Champ (Entier)
  11. public $value; //Valeur (Texte Long)
  12. public $firm; //Etablissement (Entier)
  13. public $scope; //Scope (Texte)
  14. public $uid; //Uid (Texte)
  15. protected $TABLE_NAME = 'dynamicform_value';
  16. public $entityLabel = 'Valeur dynamique';
  17. public $fields = array(
  18. 'id' => 'key',
  19. 'field' => array('type'=>'int', 'label' => 'Champ','link'=>'plugin/dynamicform/DynamicField.class.php'),
  20. 'value' => array('type'=>'longstring', 'label' => 'Valeur'),
  21. 'firm' => array('type'=>'int', 'label' => 'Etablissement'),
  22. 'scope' => array('type'=>'string', 'label' => 'Scope'),
  23. 'uid' => array('type'=>'string', 'label' => 'Uid')
  24. );
  25. //Colonnes indexées
  26. public $indexes = array('field','firm','scope','uid');
  27. }
  28. ?>