HTML and CSS Reference
In-Depth Information
/**
* Marks a given room as active
*
* @return array Information about the updated room
*/
protected function open_room( )
{
$room_id = $this->sanitize($_POST['room_id']);
return $this->model->open_room($room_id);
}
/**
* Determines whether or not the current user is the presenter
*
* @return boolean TRUE if it's the presenter, otherwise FALSE
*/
protected function is_presenter( )
{
Closing a Room
Closing a room is nearly identical to opening one, except that the close_room() method is called instead.
protected function open_room( )
{
$room_id = $this->sanitize($_POST['room_id']);
return $this->model->open_room($room_id);
}
/**
* Marks a given room as closed
*
* @return array Information about the updated room
*/
protected function close_room( )
{
$room_id = $this->sanitize($_POST['room_id']);
return $this->model->close_room($room_id);
}
/**
* Determines whether or not the current user is the presenter
*
* @return boolean TRUE if it's the presenter, otherwise FALSE
*/
protected function is_presenter( )
{
 
Search WWH ::




Custom Search