DoorLog.class.php 581 B

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