/** * Lock the room, no new users will be allowed to enter * * @uses Ajax */ public function actionLock($roomId) { $this->filterRoomId($roomId); try { // are we allowed to enter? $this->user->canEnter($roomId); $room = new Room(); $status = $room->lock($roomId); // message about it withour showing the timestamp in transcript $time = mktime(); $message = new MessageSpeak($roomId, $time, '1'); $message->lock($roomId, $this->user->getShortName(), $status); } catch (UserNotAuthorizedException $e) { $this->renderJson('bye'); } }