@param array|string $room

@return array
359695
public function get($room): array
    {
        return array_reduce((array) $room, function ($result, $value) {
            return array_merge($result, $this->redis->smembers($value));
        }, []);
    }
174237
@Override
    public <T extends ApiUser> List<T> in(ApiRoom room) {
        Room sfsRoom = CommandUtil.getSfsRoom(room, extension);
        validateRoom(sfsRoom, room);
        return CommandUtil.getApiUserList(sfsRoom.getUserList());
    }
517641
public function leave($rooms = []): self
    {
        $rooms = is_string($rooms) || is_integer($rooms) ? func_get_args() : $rooms;

        $this->room->delete($this->sender, $rooms);

        return $this;
    }
1002116
public function getRoom($roomName)
    {
        $url = $this->_baseURL . '/' . $roomName;
        try {
            $ret = $this->_transport->send(HttpRequest::GET, $url);
        } catch (\Exception $e) {
            return $e;
        }
        return $ret;
    }
204276
def rooms(self, sid, namespace=None):
        
        namespace = namespace or '/'
        return self.manager.get_rooms(sid, namespace)
40378
protected function parseFeedbackEntry(array $entry)
    {
        $entry['message'] = (string)$entry['message'];

        if (!isset($entry['dismissible'])) {
            $entry['dismissible'] = $this->isFeedbackDismissable($entry['level']);
        } else {
            $entry['dismissible'] = (bool)$entry['dismissible'];
        }

        return $entry;
    }
1096297
public static ApiRoom getRoomAgent(Room sfsRoom) {
        Object roomAgent = sfsRoom.getProperty(APIKey.ROOM);
        if(roomAgent == null) 
            throw new RuntimeException("Can not get user agent");
        return (ApiRoom)roomAgent;
    }
975122
protected function filterGetRooms($room): array
    {
        $prefix = $this->channelPrefix();

        return array_map(function ($room) use ($prefix) {
            return $prefix.$room;
        }, array_filter((array) $room, function ($value) {
            return !is_int($value);
        }));
    }
1113175
public function delete_room($room_id){
     $args = array(
       'room_id' => $room_id
     );

     $response = $this->make_request('rooms/delete', $args, 'POST');

     return ($response->deleted == 'true');
   }
130359
protected function parseEntry($entry)
    {
        if (!get_property($entry, 'url')) {
            throw new \InvalidArgumentException('Url is missing or not accessible.');
        }
        $url        = get_property($entry, 'url');
        $lastmod    = get_property($entry, 'lastmod');
        $changefreq = get_property($entry, 'changefreq');
        $priority   = get_property($entry, 'priority');

        return [$url, $lastmod, $changefreq, $priority];
    }
1194989
function(room) {
        this.rooms[room.roomId] = room;
        // add listeners for room member changes so we can keep the room member
        // map up-to-date.
        room.currentState.on("RoomState.members", this._onRoomMember.bind(this));
        // add existing members
        const self = this;
        room.currentState.getMembers().forEach(function(m) {
            self._onRoomMember(null, room.currentState, m);
        });
    }
1373280
protected function setClients(string $room, array $fds): TableRoom
    {
        return $this->setValue($room, $fds, RoomContract::ROOMS_KEY);
    }
212449
private Room getSfsRoom() {
        if(StringUtils.isEmpty(roomName))
            return extension.getParentZone().getRoomById(roomId);
        return CommandUtil.getSfsRoom(roomName, extension);
    }
1112024
@SuppressWarnings("unchecked")
    @Override
	public <T extends ApiRoom> T getRoomByName(String name) {
	    Room sfsRoom = getZone().getRoomByName(name);
	    if(sfsRoom != null && sfsRoom.containsProperty(APIKey.ROOM))
	        return (T) sfsRoom.getProperty(APIKey.ROOM);
	    return null;
	}
528529
public function createRoom($ownerId, $roomName = null)
    {
        $params['owner_id'] = $ownerId;
        if (!empty($roomName)) {
            $params['room_name'] = $roomName;
        }
        $body = json_encode($params);
        try {
            $ret = $this->_transport->send(HttpRequest::POST, $this->_baseURL, $body);
        } catch (\Exception $e) {
            return $e;
        }
        return $ret;
    }
785612
@Override
    public <T extends ApiGameUser> List<T> in(ApiRoom room, Class<?> clazz) {
        Room sfsRoom = CommandUtil.getSfsRoom(room, extension);
        validateRoom(sfsRoom, room);
        return CommandUtil.getApiGameUserList(sfsRoom.getUserList(), clazz);
    }
158341
public function changeRoomStateIfTodayInPeriod($room, $checkin, $checkout) {
		if (!is_array($room) && (is_string($room) || is_int($room))) {
			$room = $this->Room->findById($room);
		}
		$today = date('Y-m-d');
		if ($this->hasRoomMesaInDate($room, $today)) {
			return $this->Room->changeRoomState($room, 2); // 2 = Ocupada
		} else {
			if ($room['Room']['room_state_id'] != 4) {
				return $this->Room->changeRoomState($room, 1);
			}
		}
	}