2015-08-03 11:35:01 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace modl;
|
|
|
|
|
2015-09-10 15:41:45 +02:00
|
|
|
class Conference extends Model {
|
2015-08-03 11:35:01 +02:00
|
|
|
public $jid;
|
2015-09-10 15:41:45 +02:00
|
|
|
protected $conference;
|
|
|
|
protected $name;
|
|
|
|
protected $nick;
|
2015-08-03 11:35:01 +02:00
|
|
|
public $autojoin;
|
|
|
|
public $status;
|
2015-09-10 15:41:45 +02:00
|
|
|
|
2015-08-03 11:35:01 +02:00
|
|
|
public function __construct() {
|
|
|
|
$this->_struct = '
|
|
|
|
{
|
2015-09-10 15:41:45 +02:00
|
|
|
"jid" :
|
2015-08-03 11:35:01 +02:00
|
|
|
{"type":"string", "size":128, "mandatory":true, "key":true },
|
2015-09-10 15:41:45 +02:00
|
|
|
"conference" :
|
2015-08-03 11:35:01 +02:00
|
|
|
{"type":"string", "size":128, "mandatory":true, "key":true },
|
2015-09-10 15:41:45 +02:00
|
|
|
"name" :
|
2015-08-03 11:35:01 +02:00
|
|
|
{"type":"string", "size":128, "mandatory":true },
|
2015-09-10 15:41:45 +02:00
|
|
|
"nick" :
|
2015-08-03 11:35:01 +02:00
|
|
|
{"type":"string", "size":128 },
|
2015-09-10 15:41:45 +02:00
|
|
|
"autojoin" :
|
2015-08-03 11:35:01 +02:00
|
|
|
{"type":"int", "size":1 },
|
2015-09-10 15:41:45 +02:00
|
|
|
"status" :
|
2015-08-03 11:35:01 +02:00
|
|
|
{"type":"int", "size":1 }
|
|
|
|
}';
|
2015-09-10 15:41:45 +02:00
|
|
|
|
2015-08-03 11:35:01 +02:00
|
|
|
parent::__construct();
|
|
|
|
}
|
|
|
|
}
|