DoorAccess.class.php 638 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /*
  3. @nom: DoorAccess
  4. @auteur: Idleman (idleman@idleman.fr)
  5. @description: Gère les accès a la porte principale
  6. */
  7. class DoorAccess extends SQLiteEntity{
  8. public $id,$code,$user,$limit,$require;
  9. protected $TABLE_NAME = 'plugin_door';
  10. protected $CLASS_NAME = 'DoorAccess';
  11. protected $object_fields =
  12. array(
  13. 'id'=>'key',
  14. 'code'=>'string',
  15. 'user'=>'int',
  16. 'limit'=>'int',
  17. 'require'=>'longstring'
  18. );
  19. function __construct(){
  20. parent::__construct();
  21. $this->limit = -1;
  22. $this->require = json_encode(array());
  23. }
  24. function setId($id){
  25. $this->id = $id;
  26. }
  27. function getId(){
  28. return $this->id;
  29. }
  30. }
  31. ?>