|
|
|
@ -10,8 +10,10 @@ namespace Chamilo\Plugin\OpenMeetings; |
|
|
|
|
class Room |
|
|
|
|
{ |
|
|
|
|
public $SID; |
|
|
|
|
// Defining plural and non-plural because of inconsistency in OpenMeetings |
|
|
|
|
public $rooms_id; |
|
|
|
|
public $status; |
|
|
|
|
public $room_id; |
|
|
|
|
public $status; //false for closed, true for open |
|
|
|
|
public $name; |
|
|
|
|
public $roomtypes_id; |
|
|
|
|
public $comment; |
|
|
|
@ -29,7 +31,7 @@ class Room |
|
|
|
|
$this->table = Database::get_main_table('plugin_openmeetings'); |
|
|
|
|
if (!empty($id)) { |
|
|
|
|
$roomData = Database::select('*', $this->table, array('where' => array('id = ?' => $id)), 'first'); |
|
|
|
|
$this->rooms_id = $roomData['room_id']; |
|
|
|
|
$this->rooms_id = $this->room_id = $roomData['room_id']; |
|
|
|
|
$this->status = $roomData['status']; |
|
|
|
|
$this->name = $roomData['meeting_name']; |
|
|
|
|
$this->comment = $roomData['welcome_msg']; |
|
|
|
|