You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
816 B

  1. <?php
  2. namespace modl;
  3. class Conference extends Model {
  4. public $jid;
  5. public $conference;
  6. public $name;
  7. public $nick;
  8. public $autojoin;
  9. public $status;
  10. public function __construct() {
  11. $this->_struct = '
  12. {
  13. "jid" :
  14. {"type":"string", "size":128, "mandatory":true, "key":true },
  15. "conference" :
  16. {"type":"string", "size":128, "mandatory":true, "key":true },
  17. "name" :
  18. {"type":"string", "size":128, "mandatory":true },
  19. "nick" :
  20. {"type":"string", "size":128 },
  21. "autojoin" :
  22. {"type":"int", "size":1 },
  23. "status" :
  24. {"type":"int", "size":1 }
  25. }';
  26. parent::__construct();
  27. }
  28. }